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 <m.praveen@ibm.com>
(cherry picked from commit 67c4203531)
This commit is contained in:
1 parent
dad3465929
commit
08985245ad
1 file changed
+4
-2
@@ -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{},
|
||||
|
||||
Reference in new issue
Block a user