add containerSecurityContext to extraModules init containers (kubernetes#9016) (#9242)
This commit is contained in:
parent
63dbbdbb3a
commit
726d7e6239
6 changed files with 37 additions and 2 deletions
|
|
@ -187,6 +187,9 @@ spec:
|
|||
- name: {{ .name }}
|
||||
image: {{ .image }}
|
||||
command: ['sh', '-c', '/usr/local/bin/init_module.sh']
|
||||
{{- if (or $.Values.controller.containerSecurityContext .containerSecurityContext) }}
|
||||
securityContext: {{ .containerSecurityContext | default $.Values.controller.containerSecurityContext | toYaml | nindent 14 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: modules
|
||||
mountPath: /modules_mount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue