From f5b22a4c32b2316f23d59a8580c666f15cc5588b Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 8 Aug 2024 13:42:03 +0200 Subject: [PATCH] run csiaddons sidecar only for rbd nodeplugin run csiaddons sidecar only for rbd nodeplugin its not required for cephfs/nfs. Signed-off-by: Madhu Rajanna --- internal/controller/driver_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controller/driver_controller.go b/internal/controller/driver_controller.go index 185f293e..f97c1851 100644 --- a/internal/controller/driver_controller.go +++ b/internal/controller/driver_controller.go @@ -649,7 +649,7 @@ func (r *driverReconcile) reconcileControllerPluginDeployment() error { }) } // Addons Sidecar Container - if ptr.Deref(r.driver.Spec.DeployCsiAddons, false) { + if !r.isNfsDriver() && ptr.Deref(r.driver.Spec.DeployCsiAddons, false) { containers = append(containers, corev1.Container{ Name: "csi-addons", Image: r.images["addons"], @@ -951,7 +951,7 @@ func (r *driverReconcile) reconcileNodePluginDeamonSet() error { }, } // CSI Addons Sidecar Container - if ptr.Deref(r.driver.Spec.DeployCsiAddons, false) { + if r.isRdbDriver() && ptr.Deref(r.driver.Spec.DeployCsiAddons, false) { containers = append(containers, corev1.Container{ Name: "csi-addons", Image: r.images["addons"],