Skip to content

Commit

Permalink
Merge pull request #4507 from ByteAlex/hetzner-node-name
Browse files Browse the repository at this point in the history
Shorten Hetzners node names with hex repr
  • Loading branch information
k8s-ci-robot authored Jan 10, 2022
2 parents 28eaacd + 3a8064d commit b3576e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b3576e0

Please sign in to comment.