Documentation ¶
Index ¶
- func EmailToK8sID(email string) string
- func ToValidGCPServiceAccount(name string) string
- func ToValidImageName(name string) string
- func ToValidImageVersion(version string) string
- func ToValidName(name string) string
- func ToValidNameTruncated(name string, maxLength int) string
- func ToValidNameWithDots(name string) string
- func ToValidNameWithDotsTruncated(name string, maxLength int) string
- func ToValidValue(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmailToK8sID ¶
EmailToK8sID converts the provided email address to a valid Kubernetes resource name, converting the @ to a .
func ToValidGCPServiceAccount ¶
ToValidGCPServiceAccount converts the given string into a valid GCP service account name, truncating the result if it is more than 30 characters.
func ToValidImageName ¶
ToValidImageName converts the given string into a valid docker image name
func ToValidImageVersion ¶
ToValidImageVersion converts the given string into a valid docker image version string
func ToValidName ¶
ToValidName converts the given string into a valid Kubernetes resource name
func ToValidNameTruncated ¶
ToValidNameTruncated converts the given string into a valid Kubernetes resource name, truncating the result if it is more than maxLength characters.
func ToValidNameWithDots ¶
ToValidNameWithDots converts the given string into a valid Kubernetes resource name
func ToValidNameWithDotsTruncated ¶
ToValidNameWithDotsTruncated converts the given string into a valid Kubernetes resource name, truncating the result if it is more than maxLength characters.
func ToValidValue ¶
ToValidValue validates a label value which can start with numbers
Types ¶
This section is empty.