Skip to content

Commit

Permalink
Shorten Hetzners node names with hex repr
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteAlex authored Dec 7, 2021
1 parent 9e2ecfd commit 3a8064d
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 3a8064d

Please sign in to comment.