Skip to content

Commit

Permalink
Ensure only one slash in hetzner server labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Dec 17, 2024
1 parent cf0ff99 commit 99c8fb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ resource "hcloud_server" "master-fsn1" {
"kops.k8s.io/cluster" = "minimal.example.com"
"kops.k8s.io/instance-group" = "master-fsn1"
"kops.k8s.io/instance-role" = "ControlPlane"
"kops.k8s.io/node-label/kops.k8s.io/kops-controller-pki" = ""
"kops.k8s.io/node-label/node-role.kubernetes.io/control-plane" = ""
"kops.k8s.io/node-label/node.kubernetes.io/exclude-from-external-load-balancers" = ""
"node-label.kops.k8s.io.kops.k8s.io/kops-controller-pki" = ""
"node-label.kops.k8s.io.node-role.kubernetes.io/control-plane" = ""
"node-label.kops.k8s.io.node.kubernetes.io/exclude-from-external-load-balancers" = ""
}
location = "fsn1"
name = "master-fsn1-${count.index}"
Expand All @@ -263,7 +263,7 @@ resource "hcloud_server" "nodes-fsn1" {
"kops.k8s.io/cluster" = "minimal.example.com"
"kops.k8s.io/instance-group" = "nodes-fsn1"
"kops.k8s.io/instance-role" = "Node"
"kops.k8s.io/node-label/node-role.kubernetes.io/node" = ""
"node-label.kops.k8s.io.node-role.kubernetes.io/node" = ""
}
location = "fsn1"
name = "nodes-fsn1-${count.index}"
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/hetzner/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
TagKubernetesInstanceUserData = "kops.k8s.io/instance-userdata"
TagKubernetesInstanceNeedsUpdate = "kops.k8s.io/needs-update"
TagKubernetesVolumeRole = "kops.k8s.io/volume-role"
TagKubernetesNodeLabelPrefix = "kops.k8s.io/node-label/"
TagKubernetesNodeLabelPrefix = "node-label.kops.k8s.io."
)

// HetznerCloud exposes all the interfaces required to operate on Hetzner Cloud resources
Expand Down

0 comments on commit 99c8fb0

Please sign in to comment.