Skip to content

Commit

Permalink
Merge pull request ceph#108 from Madhu-1/fix-csi-addons
Browse files Browse the repository at this point in the history
run csiaddons sidecar only for rbd nodeplugin
  • Loading branch information
nb-ohad authored Aug 8, 2024
2 parents 1efdddd + f5b22a4 commit 0ded626
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 0ded626

Please sign in to comment.