Skip to content

Commit

Permalink
csi: fix the disable driver flag in the csi driver reconcile
Browse files Browse the repository at this point in the history
ROOK_CSI_DISABLE_DRIVER was not working accurate
from rook#14489
The csi driver was installed even if its not
expected

Signed-off-by: parth-gr <[email protected]>
(cherry picked from commit 166e4f3)
  • Loading branch information
parth-gr committed Sep 24, 2024
1 parent 5ca0491 commit f7151ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/operator/ceph/csi/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,7 @@ func (r *ReconcileCSI) reconcile(request reconcile.Request) (reconcile.Result, e
}
}

if !EnableCSIOperator() {

if !disableCSI && !EnableCSIOperator() {
err = r.validateAndConfigureDrivers(serverVersion, ownerInfo)
if err != nil {
return opcontroller.ImmediateRetryResult, errors.Wrap(err, "failed to configure ceph csi")
Expand Down

0 comments on commit f7151ac

Please sign in to comment.