From 14fd3fbc83cf040dc6472492caf763ad72500dda Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 18 Jan 2023 11:33:02 +0100 Subject: [PATCH] csi: fix custom ceph.conf for csi pods we need to set the variable in the template instead of the global variable for the template rendering. Signed-off-by: Madhu Rajanna (cherry picked from commit 436a87ea1309a97e765fb5854585d4b14ec13305) --- pkg/operator/ceph/csi/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/csi/spec.go b/pkg/operator/ceph/csi/spec.go index ee6d07746..688a67655 100644 --- a/pkg/operator/ceph/csi/spec.go +++ b/pkg/operator/ceph/csi/spec.go @@ -304,7 +304,7 @@ func (r *ReconcileCSI) startDrivers(ver *version.Info, ownerInfo *k8sutil.OwnerI NFSDriverName = tp.DriverNamePrefix + "nfs.csi.ceph.com" if CustomCSICephConfigExists { - CSIParam.MountCustomCephConf = v.SupportsCustomCephConf() + tp.Param.MountCustomCephConf = v.SupportsCustomCephConf() } csiDriverobj = v1CsiDriver{}