k8sutils

package
v2.6.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPVCsForGroupSnapshot

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

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

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

ValidateCRD validate crd with apiversion v1beta1

func ValidateCRDV1

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