Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidName ¶
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
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.