Attempt to make use of postgres helm chart without setting DATABASE_URL

This commit is contained in:
David Burke 2022-04-05 11:04:48 -04:00
parent fa7f7acd2b
commit 74f1ec9f6c
7 changed files with 62 additions and 13 deletions

View file

@ -42,6 +42,10 @@ spec:
env:
- name: SERVER_ROLE
value: "worker"
{{- if .Values.env.secret.DATABASE_URL }}
- name: DATABASE_URL
value: {{ .Values.env.secret.DATABASE_URL }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "django.fullname" . }}
@ -59,4 +63,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}