label

package
v1.11.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 23

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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