linode-cli icon indicating copy to clipboard operation
linode-cli copied to clipboard

linode-cli k8s-alpha create should prevalidate cluster names

Open displague opened this issue 6 years ago • 2 comments

Using the label: k8s_test, for example, will result in a nearly completed cluster and a very late error.

module.k8s.linode_instance.k8s_master (remote-exec): name: Invalid value: "k8s_test-master-1": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')

displague avatar Feb 14 '19 14:02 displague

This has been on my personal to do list for a while. Thanks for codifying it

asauber avatar Feb 15 '19 19:02 asauber

Hyphens and dots are valid Linode instance names. This may no longer be a concern.

displague avatar Apr 09 '19 21:04 displague

Closing this issue as k8s-alpha has been removed from linode-cli.

LBGarber avatar Sep 08 '22 12:09 LBGarber