mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
cleanup: use prefix instead of hardcoding csiParameterPrefix
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
parent
8b96180161
commit
deb003e605
@ -26,14 +26,14 @@ const (
|
|||||||
|
|
||||||
// PV and PVC metadata keys used by external provisioner as part of
|
// PV and PVC metadata keys used by external provisioner as part of
|
||||||
// create requests as parameters, when `extra-create-metadata` is true.
|
// create requests as parameters, when `extra-create-metadata` is true.
|
||||||
pvcNameKey = "csi.storage.k8s.io/pvc/name"
|
pvcNameKey = csiParameterPrefix + "pvc/name"
|
||||||
pvcNamespaceKey = "csi.storage.k8s.io/pvc/namespace"
|
pvcNamespaceKey = csiParameterPrefix + "pvc/namespace"
|
||||||
pvNameKey = "csi.storage.k8s.io/pv/name"
|
pvNameKey = csiParameterPrefix + "pv/name"
|
||||||
|
|
||||||
// snapshot metadata keys.
|
// snapshot metadata keys.
|
||||||
volSnapNameKey = "csi.storage.k8s.io/volumesnapshot/name"
|
volSnapNameKey = csiParameterPrefix + "volumesnapshot/name"
|
||||||
volSnapNamespaceKey = "csi.storage.k8s.io/volumesnapshot/namespace"
|
volSnapNamespaceKey = csiParameterPrefix + "volumesnapshot/namespace"
|
||||||
volSnapContentNameKey = "csi.storage.k8s.io/volumesnapshotcontent/name"
|
volSnapContentNameKey = csiParameterPrefix + "volumesnapshotcontent/name"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RemoveCSIPrefixedParameters removes parameters prefixed with csiParameterPrefix.
|
// RemoveCSIPrefixedParameters removes parameters prefixed with csiParameterPrefix.
|
||||||
|
Loading…
Reference in New Issue
Block a user