package
0.32.0-alpha.0
Repository: https://github.com/kubernetes/component-helpers.git
Documentation: pkg.go.dev

# Functions

CheckAccessModes returns true if PV satisfies all the PVC's requested AccessModes.
CheckNodeAffinity looks at the PV node affinity, and checks if the node has the same corresponding labels This ensures that we don't mount a volume that doesn't belong to this node.
CheckVolumeModeMismatches is a convenience method that checks volumeMode for PersistentVolume and PersistentVolumeClaims.
FindMatchingVolume goes through the list of volumes to find the best matching volume for the claim.
GetBindVolumeToClaim returns a new volume which is bound to given claim.
GetPersistentVolumeClaimClass returns StorageClassName.
GetPersistentVolumeClass returns StorageClassName.
IsDelayBindingMode checks if claim is in delay binding mode.
IsDelayBindingProvisioning checks if claim provisioning with selected-node annotation.
IsVolumeBoundToClaim returns true, if given volume is pre-bound or bound to specific claim.
PersistentVolumeClaimHasClass returns true if given claim has set StorageClassName field.

# Constants

No description provided by the author
AnnBindCompleted Annotation applies to PVCs.
AnnBoundByController annotation applies to PVs and PVCs.
AnnDynamicallyProvisioned annotation is added to a PV that has been dynamically provisioned by Kubernetes.
AnnMigratedTo annotation is added to a PVC and PV that is supposed to be dynamically provisioned/deleted by by its corresponding CSI driver through the CSIMigration feature flags.
AnnSelectedNode annotation is added to a PVC that has been triggered by scheduler to be dynamically provisioned.
AnnStorageProvisioner annotation is added to a PVC that is supposed to be dynamically provisioned.
NotSupportedProvisioner is a special provisioner name which can be set in storage class to indicate dynamic provisioning is not supported by the storage.
PVDeletionInTreeProtectionFinalizer is the finalizer added to protect PV deletion for in-tree volumes.
PVDeletionProtectionFinalizer is the finalizer added by the external-provisioner on the PV.