From ae0dc30ccc4bcabfd21442815be717b604998d66 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 22 Sep 2025 09:49:14 +0200 Subject: [PATCH] csi: use recreate deployment strategy This is a fix/workaround to set the Recreate deployment strategy as default in Rook as its long proven working without any problem. Signed-off-by: Madhu Rajanna (cherry picked from commit 333082c397dc11c805a9b20ccc63a4e6468462df) --- pkg/operator/ceph/csi/operator_config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/operator/ceph/csi/operator_config.go b/pkg/operator/ceph/csi/operator_config.go index 3a68f6421..cbd4d8476 100644 --- a/pkg/operator/ceph/csi/operator_config.go +++ b/pkg/operator/ceph/csi/operator_config.go @@ -21,6 +21,7 @@ import ( csiopv1 "github.com/ceph/ceph-csi-operator/api/v1" "github.com/pkg/errors" + appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" k8scsiv1 "k8s.io/api/storage/v1" kerrors "k8s.io/apimachinery/pkg/api/errors" @@ -103,6 +104,9 @@ func (r *ReconcileCSI) generateCSIOpConfigSpec(cluster cephv1.CephCluster, opCon EnableSeLinuxHostMount: &CSIParam.EnablePluginSelinuxHostMount, }, ControllerPlugin: &csiopv1.ControllerPluginSpec{ + DeploymentStrategy: &appsv1.DeploymentStrategy{ + Type: appsv1.RecreateDeploymentStrategyType, + }, PodCommonSpec: csiopv1.PodCommonSpec{ PrioritylClassName: &CSIParam.PluginPriorityClassName, Affinity: &v1.Affinity{