Skip to content

Commit

Permalink
feat(hetzner): autoscaler includes new provided-by label
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmetzner committed Oct 28, 2024
1 parent 2953386 commit cbabd80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,12 @@ func buildNodeGroupLabels(n *hetznerNodeGroup) (map[string]string, error) {
klog.V(4).Infof("Build node group label for %s", n.id)

labels := map[string]string{
apiv1.LabelInstanceType: n.instanceType,
apiv1.LabelTopologyRegion: n.region,
apiv1.LabelArchStable: archLabel,
"csi.hetzner.cloud/location": n.region,
nodeGroupLabel: n.id,
apiv1.LabelInstanceType: n.instanceType,
apiv1.LabelTopologyRegion: n.region,
apiv1.LabelArchStable: archLabel,
"csi.hetzner.cloud/location": n.region,
"instance.hetzner.cloud/provided-by": "cloud",
nodeGroupLabel: n.id,
}

if n.manager.clusterConfig.IsUsingNewFormat {
Expand Down

0 comments on commit cbabd80

Please sign in to comment.