Documentation ¶
Index ¶
- Constants
- func CreateCRD(resource apiextensions.CustomResource) error
- func GetImageRegistryFromDeployment(name, namespace string) (string, string, error)
- func GetPVCsForGroupSnapshot(namespace string, matchLabels map[string]string) ([]v1.PersistentVolumeClaim, error)
- func GetStorkPodNamespace() (string, error)
- func GetVolumeNamesFromLabelSelector(namespace string, labels map[string]string) ([]string, error)
- func ValidateCRD(client *clientset.Clientset, crdName string) error
- func ValidateCRDV1(client *clientset.Clientset, crdName string) error
Constants ¶
View Source
const ( // StorkDeploymentName - stork deployment name StorkDeploymentName = "stork" // DefaultAdminNamespace - default admin namespace, where stork will be installed DefaultAdminNamespace = "kube-system" )
Variables ¶
This section is empty.
Functions ¶
func CreateCRD ¶
func CreateCRD(resource apiextensions.CustomResource) error
CreateCRD creates the given custom resource
func GetImageRegistryFromDeployment ¶
GetImageRegistryFromDeployment - extract image registry and image registry secret from deployment spec
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 GetStorkPodNamespace ¶
GetStorkPodNamespace - will return the stork pod namespace.
func GetVolumeNamesFromLabelSelector ¶
GetVolumeNamesFromLabelSelector returns PV names for all PVCs in given namespace that match the given labels
func ValidateCRD ¶
ValidateCRD validate crd with apiversion v1beta1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.