From 67c42035318a2d64ece4ecc2b6419cbdea17c632 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Wed, 18 Feb 2026 13:57:01 +0530 Subject: [PATCH] csi: update imagePullPolicy in operatorconfig and driver CR Adds ImagePullPolicy configuration to CSI node plugin and controller plugin specs in both the operator config and driver CR generation functions. This ensures the CSI driver components use the configured pull policy from CSIParam.ImagePullPolicy. Signed-off-by: Praveen M --- pkg/operator/ceph/csi/operator_config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/operator/ceph/csi/operator_config.go b/pkg/operator/ceph/csi/operator_config.go index 6527d63bc..0e09404ba 100644 --- a/pkg/operator/ceph/csi/operator_config.go +++ b/pkg/operator/ceph/csi/operator_config.go @@ -99,7 +99,8 @@ func (r *ReconcileCSI) generateCSIOpConfigSpec(cluster cephv1.CephCluster, opCon Affinity: &v1.Affinity{ NodeAffinity: getNodeAffinity(pluginNodeAffinityEnv, &v1.NodeAffinity{}), }, - Tolerations: getToleration(pluginTolerationsEnv, []v1.Toleration{}), + Tolerations: getToleration(pluginTolerationsEnv, []v1.Toleration{}), + ImagePullPolicy: v1.PullPolicy(CSIParam.ImagePullPolicy), }, Resources: csiopv1.NodePluginResourcesSpec{}, KubeletDirPath: CSIParam.KubeletDirPath, @@ -115,7 +116,8 @@ func (r *ReconcileCSI) generateCSIOpConfigSpec(cluster cephv1.CephCluster, opCon Affinity: &v1.Affinity{ NodeAffinity: getNodeAffinity(provisionerNodeAffinityEnv, &v1.NodeAffinity{}), }, - Tolerations: getToleration(provisionerTolerationsEnv, []v1.Toleration{}), + Tolerations: getToleration(provisionerTolerationsEnv, []v1.Toleration{}), + ImagePullPolicy: v1.PullPolicy(CSIParam.ImagePullPolicy), }, Replicas: &CSIParam.ProvisionerReplicas, Resources: csiopv1.ControllerPluginResourcesSpec{},