Skip to content

Conversation

@alexevladgabriel
Copy link
Contributor

Description

Make Server Types & Locations dynamic based on API endpoints provided by Hetzner Docs.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Template Information

Path: registry/Excellencedev/templates/hetzner-linux

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the Hetzner template by replacing static location and server type configurations with dynamic data fetched from Hetzner Cloud API endpoints. This eliminates the need for manual maintenance of a local JSON file and ensures the template always reflects current Hetzner offerings.

Key Changes:

  • Added hashicorp/http provider to fetch data from Hetzner Cloud API
  • Replaced static location options with dynamic options built from API response
  • Replaced JSON file-based server types with dynamic API-fetched data
  • Implemented filtering to exclude deprecated server types automatically

@DevelopmentCats DevelopmentCats self-requested a review December 22, 2025 21:17
Copy link
Contributor

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works perfectly for me after testing this

@DevelopmentCats DevelopmentCats merged commit 60611ed into coder:main Jan 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants