package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

CheckAccessModes returns true if PV satisfies all the PVC's requested AccessModes.
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.
GetVolumeNodeAffinity returns a VolumeNodeAffinity for given key and value.
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.

# Constants

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.
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.