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>
(cherry picked from commit ffdfeb5bec)
This commit is contained in:
Madhu Rajanna authored and Mergify committed 2022-10-18 15:10:41 +00:00
1 parent b7bda4ae64
commit 78eb665282
1 file changed
+6
@@ -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: