add containerSecurityContext to extraModules init containers (kubernetes#9016) (#9242)

This commit is contained in:
pellmont 2022-11-10 11:38:54 +01:00 committed by GitHub
parent 63dbbdbb3a
commit 726d7e6239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 2 deletions

View file

@ -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