From e0618a8463c313f2bd055722831df8cb24f751e2 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Mon, 21 Oct 2024 20:26:51 +0530 Subject: [PATCH] fix: update extra-create-metadata arg condition This commit updates the condition to include the `extra-create-metadata` argument for the csi-snapshotter sidecar container when the driver type is either RBD or CephFS. Signed-off-by: Praveen M --- internal/controller/driver_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/driver_controller.go b/internal/controller/driver_controller.go index 75a82b86..85b3e16b 100644 --- a/internal/controller/driver_controller.go +++ b/internal/controller/driver_controller.go @@ -741,7 +741,7 @@ func (r *driverReconcile) reconcileControllerPluginDeployment() error { utils.LogVerbosityContainerArg(logVerbosity), utils.CsiAddressContainerArg, utils.TimeoutContainerArg(grpcTimeout), - utils.If(r.isNfsDriver(), utils.ExtraCreateMetadataContainerArg, ""), + utils.If(!r.isNfsDriver(), utils.ExtraCreateMetadataContainerArg, ""), utils.If( r.driverType != NfsDriverType && snPolicy == csiv1a1.VolumeGroupSnapshotPolicy, utils.EnableVolumeGroupSnapshotsContainerArg,