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

@ -64,6 +64,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
{{- if .Values.env.secret.DATABASE_URL }}
- name: DATABASE_URL
value: {{ .Values.env.secret.DATABASE_URL }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "django.fullname" . }}