Fix helm chart to generate config.postgresURI

The configuration was merged with the comment line above due to usage of
the {{- ...  -}} construct.
This commit is contained in:
Diederik van der Boor 2018-02-09 13:26:38 +01:00
parent ce0699c59d
commit 64c2853e75

View File

@ -14,7 +14,7 @@ data:
# PostgreSQL Connection string
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
# This should be done using secrets or Vault, but for now this will also work
{{- if .Values.config.postgresURI -}}
{{- if .Values.config.postgresURI }}
source: "{{ .Values.config.postgresURI }}"
{{ else }}
source: "postgres://{{ .Values.postgresql.postgresUser }}:{{ .Values.postgresql.postgresPassword }}@{{ template "postgresql.fullname" . }}:5432/{{ .Values.postgresql.postgresDatabase }}?sslmode=disable"