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

@ -9,4 +9,10 @@ metadata:
data:
{{- range $k, $v := .Values.env.normal }}
{{ $k }}: {{ $v | quote }}
{{- end }}
{{- end }}
{{- if .Values.postgresql.enabled }}
DATABASE_HOST: {{ include "django.postgresql.host" . | quote }}
DATABASE_USER: {{ include "django.postgresql.username" . | quote }}
DATABASE_NAME: {{ include "django.postgresql.name" . | quote }}
DATABASE_PORT: {{ include "django.postgresql.port" . | quote }}
{{- end }}