Skip to content

Commit

Permalink
update parameter keys and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zetsub0u committed Feb 6, 2020
1 parent 13e19b6 commit 37bc294
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -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 <gates>`: A set of comma separated `<feature-name>=<true|false>` 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.

Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/controller.go
Expand Up @@ -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
Expand Down

0 comments on commit 37bc294

Please sign in to comment.