k8sutils

package
v2.6.4-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPVCsForGroupSnapshot added in v1.4.0

func GetPVCsForGroupSnapshot(namespace string, matchLabels map[string]string) ([]v1.PersistentVolumeClaim, error)

GetPVCsForGroupSnapshot returns all PVCs in given namespace that match the given matchLabels. All PVCs need to be bound.

func GetVolumeNamesFromLabelSelector added in v1.4.0

func GetVolumeNamesFromLabelSelector(namespace string, labels map[string]string) ([]string, error)

GetVolumeNamesFromLabelSelector returns PV names for all PVCs in given namespace that match the given labels

func ValidateCRD added in v1.4.0

func ValidateCRD(client *clientset.Clientset, crdName string) error

ValidateCRD validate crd with apiversion v1beta1

func ValidateCRDV1 added in v1.4.0

func ValidateCRDV1(client *clientset.Clientset, crdName string) error

ValidateCRDV1 validate crd with apiversion v1

Types

This section is empty.

Jump to

Keyboard shortcuts

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