csi: explicitly set Topology feature-gate

issue:
external-provisioner (v5) enabled topology feature-gate by default
and the current implementation in Rook uses a conditional block to
enable the topology feature gate. This approach now does not directly
reflect the state of the `CSI_ENABLE_TOPOLOGY`.

fix:
replacing the conditional block with a direct use of the
`CSI_ENABLE_TOPOLOGY` for flag value.

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M committed 2024-07-31 20:37:20 +05:30
1 parent d91b8073c5
commit e30e5e881f
1 file changed
+1 -3
@@ -38,9 +38,7 @@ spec:
- "--extra-create-metadata=true"
- "--prevent-volume-mode-conversion=true"
- "--feature-gates=HonorPVReclaimPolicy=true"
{{ if .EnableCSITopology }}
- "--feature-gates=Topology=true"
{{ end }}
- "--feature-gates=Topology={{ .EnableCSITopology }}"
{{ if .KubeApiBurst }}
- "--kube-api-burst={{ .KubeApiBurst }}"
{{ end }}