diff --git a/README.md b/README.md index 16df4fb417..4e1e3bc7d4 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ Note that the external-provisioner does not scale with more replicas. Only one e * `--metrics-path`: The HTTP path where prometheus metrics will be exposed. Default is `/metrics`. +* `--extraCreateMetadata`: Enables the injection of extra PVC and PV metadata as parameters when calling `CreateVolume` on the driver (keys: "csi.storage.k8s.io/pvc/name", "csi.storage.k8s.io/pvc/namespace", "csi.storage.k8s.io/pv/name") + #### Other recognized arguments * `--feature-gates `: A set of comma separated `=` pairs that describe feature gates for alpha/experimental features. See [list of features](#feature-status) or `--help` output for list of recognized features. Example: `--feature-gates Topology=true` to enable Topology feature that's disabled by default. diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 7d824ad378..4dda409505 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -105,9 +105,9 @@ const ( nodePublishSecretNamespaceKey = "csiNodePublishSecretNamespace" // PV and PVC metadata, used for sending to drivers in the create requests, added as parameters, optional. - pvcNameKey = "csi.storage.k8s.io/created-for/pvc/name" - pvcNamespaceKey = "csi.storage.k8s.io/created-for/pvc/namespace" - pvNameKey = "csi.storage.k8s.io/created-for/pv/name" + pvcNameKey = "csi.storage.k8s.io/pvc/name" + pvcNamespaceKey = "csi.storage.k8s.io/pvc/namespace" + pvNameKey = "csi.storage.k8s.io/pv/name" // Defines parameters for ExponentialBackoff used for executing // CSI CreateVolume API call, it gives approx 4 minutes for the CSI