Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidName ¶
GetValidName converts an input string to valid kubernetes label string in accordance to rfc1035 DNS Label spec (https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md) Length of the label is adjusted basis the DNS1035LabelMaxLength (defined at k8s.io/apimachinery/pkg/util/validation) If length exceeds, we trim the label name to contain only max allowed characters Additionally, the last 6 characters of the label name are replaced by the first 6 characters of the sha256 of original label
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.