Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StoragePolicyIDParameter is the name of the parameter set on a // StorageClass that indicates the identifier of the underlying // storage policy/profile. StoragePolicyIDParameter = "storagePolicyID" // StorageClassKind is the kind for a StorageClass resource. StorageClassKind = "StorageClass" // StorageClassGroup is the API group to which a StorageClass resource // belongs. StorageClassGroup = storagev1.GroupName // StorageClassResource is the API resource for a StorageClass. StorageClassResource = "storageclasses" // StorageClassGroupVersion is the API group and version version for a // StorageClass resource. StorageClassGroupVersion = StorageClassGroup + "/v1" // EncryptedStorageClassNamesConfigMapName is the name of the ConfigMap in // the VM Operator pod's namespace that indicates which StorageClasses // support encryption by virtue of the OwnerRefs set on the ConfigMap. EncryptedStorageClassNamesConfigMapName = "encrypted-storage-class-names" )
Variables ¶
This section is empty.
Functions ¶
func GetEncryptedStorageClassRefs ¶
func GetEncryptedStorageClassRefs( ctx context.Context, k8sClient ctrlclient.Client) ([]metav1.OwnerReference, error)
GetEncryptedStorageClassRefs returns a list of the OwnerRef objects for StorageClasses marked as encrypted.
func GetOwnerRefForStorageClass ¶
func GetOwnerRefForStorageClass( storageClass storagev1.StorageClass) metav1.OwnerReference
GetOwnerRefForStorageClass returns an OwnerRef for the provided StorageClass.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.