label

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidName

func GetValidName(label string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL