Replace deprecated datacenter by location for priamry-ips
Hetzner has changed it's API and removed the field `datacenter` from the
primary IPs in favor of `location`. This change reflex this and adjusts
the configuration accordingly. Note, that this change didn't require any
manual state changes. Instead I applied the former plan with the newest
provider once. Hence the provider already treated the fields correctly I
only had to adjust the configuration.
Chapeau Hetzner for this good transition!
See-also: 14da745f Update tofu-resources to their latest versions
Reference: https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters
This commit is contained in:
@@ -34,15 +34,13 @@ variable "ssh_keys" {
|
||||
|
||||
variable "k8s_servers" {
|
||||
type = list(object({
|
||||
type = optional(string, "cax11")
|
||||
location = string
|
||||
ip_datacenter = string
|
||||
type = optional(string, "cax11")
|
||||
location = string
|
||||
}))
|
||||
description = <<EOF
|
||||
The servers of the kubernetes-cluster.
|
||||
This should always contain an off number of servers.
|
||||
An overview of locations can be found at: https://docs.hetzner.com/cloud/general/locations/
|
||||
Note, that the ip_datacenter has to match the location.
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user