Skip to content

Commit

Permalink
run csiaddons sidecar only for rbd nodeplugin
Browse files Browse the repository at this point in the history
run csiaddons sidecar only for rbd nodeplugin
its not required for cephfs/nfs.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Aug 8, 2024
1 parent deb792a commit f5b22a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/driver_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit f5b22a4

Please sign in to comment.