Documentation
¶
Index ¶
- Constants
- Variables
- func AddPVCFlags(cmd *cobra.Command)
- func GetAZFromTopology(topologyKey string, requirement *csi.TopologyRequirement) string
- func GetPVCAnnotations(pvcLister corev1.PersistentVolumeClaimLister, params map[string]string) map[string]string
- func GetPVCLister() corev1.PersistentVolumeClaimLister
Constants ¶
View Source
const ( // https://github.com/kubernetes-csi/external-snapshotter/pull/375 VolSnapshotNameKey = "csi.storage.k8s.io/volumesnapshot/name" VolSnapshotNamespaceKey = "csi.storage.k8s.io/volumesnapshot/namespace" VolSnapshotContentNameKey = "csi.storage.k8s.io/volumesnapshotcontent/name" // https://github.com/kubernetes-csi/external-provisioner/pull/399 PvcNameKey = "csi.storage.k8s.io/pvc/name" PvcNamespaceKey = "csi.storage.k8s.io/pvc/namespace" PvNameKey = "csi.storage.k8s.io/pv/name" // https://github.com/kubernetes/kubernetes/pull/79983 VolEphemeralKey = "csi.storage.k8s.io/ephemeral" )
Variables ¶
View Source
var ( // RecognizedCSISnapshotterParams Recognized volume parameters passed by Kubernetes csi-snapshotter sidecar // when run with --extra-create-metadata flag. These are added to metadata // of newly created snapshots if present. RecognizedCSISnapshotterParams = []string{ VolSnapshotNameKey, VolSnapshotNamespaceKey, VolSnapshotContentNameKey, } // RecognizedCSIProvisionerParams Recognized volume parameters passed by Kubernetes csi-provisioner sidecar // when run with --extra-create-metadata flag. These are added to metadata // of newly created shares if present. RecognizedCSIProvisionerParams = []string{ PvcNameKey, PvcNamespaceKey, PvNameKey, } )
Functions ¶
func AddPVCFlags ¶
func GetAZFromTopology ¶
func GetAZFromTopology(topologyKey string, requirement *csi.TopologyRequirement) string
func GetPVCAnnotations ¶
func GetPVCAnnotations(pvcLister corev1.PersistentVolumeClaimLister, params map[string]string) map[string]string
GetPVCAnnotations returns PVC annotations for the given PVC name and namespace stored in the params map.
func GetPVCLister ¶
func GetPVCLister() corev1.PersistentVolumeClaimLister
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.