naming

package
v3.0.93 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailToK8sID

func EmailToK8sID(email string) string

EmailToK8sID converts the provided email address to a valid Kubernetes resource name, converting the @ to a .

func ToValidGCPServiceAccount

func ToValidGCPServiceAccount(name string) string

ToValidGCPServiceAccount converts the given string into a valid GCP service account name, truncating the result if it is more than 30 characters.

func ToValidImageName

func ToValidImageName(name string) string

ToValidImageName converts the given string into a valid docker image name

func ToValidImageVersion

func ToValidImageVersion(version string) string

ToValidImageVersion converts the given string into a valid docker image version string

func ToValidName

func ToValidName(name string) string

ToValidName converts the given string into a valid Kubernetes resource name

func ToValidNameTruncated

func ToValidNameTruncated(name string, maxLength int) string

ToValidNameTruncated converts the given string into a valid Kubernetes resource name, truncating the result if it is more than maxLength characters.

func ToValidNameWithDots

func ToValidNameWithDots(name string) string

ToValidNameWithDots converts the given string into a valid Kubernetes resource name

func ToValidNameWithDotsTruncated

func ToValidNameWithDotsTruncated(name string, maxLength int) string

ToValidNameWithDotsTruncated converts the given string into a valid Kubernetes resource name, truncating the result if it is more than maxLength characters.

func ToValidValue

func ToValidValue(name string) string

ToValidValue validates a label value which can start with numbers

Types

This section is empty.

Jump to

Keyboard shortcuts

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