@@ -241,7 +241,7 @@ spec:
241241 automountServiceAccountToken: true
242242 containers:
243243 - name: provisioner
244- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
244+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
245245 image: { { $provisionerImage | quote } }
246246 args:
247247 - "--timeout={ { $provisionerTimeout } }"
@@ -294,7 +294,7 @@ spec:
294294 { {- include " provisioner_resources" $context | nindent 12 } }
295295 { {- end } }
296296 - name: attacher
297- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
297+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
298298 image: { { $attacherImage | quote } }
299299 args:
300300 - "--timeout={ { $attacherTimeout } }"
@@ -325,7 +325,7 @@ spec:
325325 { {- end } }
326326 { {- if $resizerEnabled } }
327327 - name: resizer
328- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
328+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
329329 image: { { $resizerImage | quote } }
330330 args:
331331 - "--timeout={ { $resizerTimeout } }"
@@ -357,7 +357,7 @@ spec:
357357 { {- end } }
358358 { {- if $syncerEnabled } }
359359 - name: syncer
360- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
360+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
361361 image: { { $syncerImage | quote } }
362362 args:
363363 - "--leader-election"
@@ -384,7 +384,7 @@ spec:
384384 { {- end } }
385385 { {- if $snapshotterEnabled } }
386386 - name: snapshotter
387- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
387+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
388388 image: { { $snapshotterImage | quote } }
389389 args:
390390 - "--timeout={ { $snapshotterTimeout } }"
@@ -418,7 +418,7 @@ spec:
418418 { {- end } }
419419 { {- end } }
420420 - name: livenessprobe
421- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
421+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
422422 image: { { $livenessprobeImage | quote } }
423423 args:
424424 - "--csi-address=$(ADDRESS)"
@@ -454,7 +454,7 @@ spec:
454454{ {- if $forceCsiControllerPrivilegedContainer } }
455455 { {- include " helm_lib_module_container_security_context_escalated_sys_admin_privileged" . | nindent 8 } }
456456{ {- else } }
457- { {- include " helm_lib_module_container_security_context_read_only_root_filesystem " . | nindent 8 } }
457+ { {- include " helm_lib_module_container_security_context_pss_restricted_flexible " (dict " ro " true " seccompProfile " true ) | nindent 8 } }
458458{ {- end } }
459459 image: { { $controllerImage | quote } }
460460 args:
0 commit comments