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 <madhupr007@gmail.com>
(cherry picked from commit 436a87ea13)
This commit is contained in:
Madhu Rajanna authored and Mergify committed 2023-01-18 14:32:26 +00:00
1 parent e09c823d8c
commit 14fd3fbc83
1 file changed
+1 -1
+1 -1
View File
@@ -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{}