From 3a8064dd30ea47cbd120f65b2e10f1472f2aa0ea Mon Sep 17 00:00:00 2001 From: Alex <2230292+ByteAlex@users.noreply.github.com> Date: Tue, 7 Dec 2021 17:18:22 +0100 Subject: [PATCH] Shorten Hetzners node names with hex repr --- cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go b/cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go index 7d06be8c24e2..67c8107b093a 100644 --- a/cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go +++ b/cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go @@ -305,7 +305,7 @@ func toInstanceStatus(status hcloud.ServerStatus) *cloudprovider.InstanceStatus } func newNodeName(n *hetznerNodeGroup) string { - return fmt.Sprintf("%s-%d", n.id, rand.Int63()) + return fmt.Sprintf("%s-%x", n.id, rand.Int63()) } func buildNodeGroupLabels(n *hetznerNodeGroup) map[string]string {