@@ -137,7 +137,7 @@ spec:
137137 - name : NVIDIA_VISIBLE_DEVICES
138138 value : void
139139 - name : CDI_ROOT
140- value : /var/run/cdi
140+ value : {{ .Values.cdiRoot | quote }}
141141 - name : NVIDIA_MIG_CONFIG_DEVICES
142142 value : all
143143 - name : NODE_NAME
@@ -174,7 +174,7 @@ spec:
174174 mountPath : {{ .Values.kubeletPlugin.kubeletPluginsDirectoryPath | quote }}
175175 mountPropagation : Bidirectional
176176 - name : cdi
177- mountPath : /var/run/cdi
177+ mountPath : {{ .Values.cdiRoot | quote }}
178178 - name : driver-root
179179 mountPath : /driver-root
180180 readOnly : true
@@ -238,7 +238,7 @@ spec:
238238 - name : NVIDIA_VISIBLE_DEVICES
239239 value : void
240240 - name : CDI_ROOT
241- value : /var/run/cdi
241+ value : {{ .Values.cdiRoot | quote }}
242242 - name : NVIDIA_MIG_CONFIG_DEVICES
243243 value : all
244244 - name : NODE_NAME
@@ -277,7 +277,7 @@ spec:
277277 mountPath : {{ .Values.kubeletPlugin.kubeletPluginsDirectoryPath | quote }}
278278 mountPropagation : Bidirectional
279279 - name : cdi
280- mountPath : /var/run/cdi
280+ mountPath : {{ .Values.cdiRoot | quote }}
281281 - name : driver-root
282282 mountPath : /driver-root
283283 mountPropagation : HostToContainer
@@ -303,7 +303,7 @@ spec:
303303 path : {{ .Values.kubeletPlugin.kubeletPluginsDirectoryPath | quote }}
304304 - name : cdi
305305 hostPath :
306- path : /var/run/cdi
306+ path : {{ .Values.cdiRoot | quote }}
307307 - name : driver-root-parent
308308 hostPath :
309309 # If nvidiaDriverRoot == "/" then its parent is itself. Otherwise, get
0 commit comments