Version: v1.7.0 Latest Latest

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 16




This section is empty.


This section is empty.


func GetValidName

func GetValidName(label string) string

GetValidName converts an input string to valid kubernetes label string in accordance to rfc1035 DNS Label spec ( Length of the label is adjusted basis the DNS1035LabelMaxLength (defined at 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

func NewListOptionsForBackup added in v1.4.0

func NewListOptionsForBackup(name string) metav1.ListOptions

NewListOptionsForBackup returns a ListOptions based on the backup name. This is useful for interacting with client-go clients that needs a ListOptions.

func NewSelectorForBackup added in v1.4.0

func NewSelectorForBackup(name string) labels.Selector

NewSelectorForBackup returns a Selector based on the backup name. This is useful for interacting with Listers that need a Selector.


This section is empty.

Source Files

Jump to

Keyboard shortcuts

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