forked from rook/rook
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user