Merge branch 'melanger-master-patch-69344' into 'master'

fix: add security context to pre-install-job

See merge request burke-software/django-helm-chart!16
This commit is contained in:
David Burke 2024-07-15 14:27:26 +00:00
commit 8358d4a9f6

View file

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