csi: add setmetadata and clustername flag to omap

The omap generator sidecar is the one who
sets the pvc name and clustername in the metadata
if the pv is re-attached to a new pvc or if the
clustername changes, for that reason we need to
set these flags on the omap generator sidecar
also.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2022-10-18 15:29:58 +02:00
parent 429d209a21
commit ffdfeb5bec
@@ -113,6 +113,12 @@ spec:
- "--drivernamespace=$(DRIVER_NAMESPACE)"
- "--v={{ .LogLevel }}"
- "--drivername={{ .DriverNamePrefix }}rbd.csi.ceph.com"
{{ if .CSIEnableMetadata }}
- "--setmetadata={{ .CSIEnableMetadata }}"
{{ end }}
{{ if .CSIClusterName }}
- "--clustername={{ .CSIClusterName }}"
{{ end }}
env:
- name: DRIVER_NAMESPACE
valueFrom: