Skip to content

Commit 7fcd2a6

Browse files
fix: Propogate securityContext to initContainer (#1444)
Fixes #1370
1 parent bdbc285 commit 7fcd2a6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

helm/blueapi/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ spec:
8383
{{- if .Values.initContainer.enabled }}
8484
initContainers:
8585
- name: setup-scratch
86+
{{- with .Values.securityContext }}
87+
securityContext:
88+
{{- toYaml . | nindent 10 }}
89+
{{- end }}
8690
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
8791
imagePullPolicy: {{ .Values.image.pullPolicy }}
8892
resources:

0 commit comments

Comments
 (0)