fix: add security context to pre-install-job

This commit is contained in:
melanger 2024-04-04 08:18:58 +00:00
parent 0d5921af5e
commit 85fa6fb881

View file

@ -21,8 +21,12 @@ spec:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
restartPolicy: Never restartPolicy: Never
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
- name: pre-install-job - name: pre-install-job
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["./manage.py","migrate"] command: ["./manage.py","migrate"]