deploy: add --extra-create-metadata arg to csi-snapshotter sidecar

This argument in csi-snapshotter sidecar allows us to receive
snapshot-name/snapshot-namespace/snapshotcontent-name metadata in the
CreateSnapshot() request.

For ex:

csi.storage.k8s.io/volumesnapshot/name
csi.storage.k8s.io/volumesnapshot/namespace
csi.storage.k8s.io/volumesnapshotcontent/name

This is a useful information which can be used depend on the use case we
have at our driver. The features like adding metadata to snapshot image
can consume this based on the need.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2022-03-04 11:05:42 +05:30 committed by mergify[bot]
parent 41fe2c7dda
commit d870cb152a
2 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,7 @@ spec:
- "--v={{ .Values.logLevel }}" - "--v={{ .Values.logLevel }}"
- "--timeout={{ .Values.provisioner.timeout }}" - "--timeout={{ .Values.provisioner.timeout }}"
- "--leader-election=true" - "--leader-election=true"
- "--extra-create-metadata=true"
env: env:
- name: ADDRESS - name: ADDRESS
value: "unix:///csi/{{ .Values.provisionerSocketFile }}" value: "unix:///csi/{{ .Values.provisionerSocketFile }}"

View File

@ -73,6 +73,7 @@ spec:
- "--v=5" - "--v=5"
- "--timeout=150s" - "--timeout=150s"
- "--leader-election=true" - "--leader-election=true"
- "--extra-create-metadata=true"
env: env:
- name: ADDRESS - name: ADDRESS
value: unix:///csi/csi-provisioner.sock value: unix:///csi/csi-provisioner.sock