internal

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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