From 64c2853e753d7b0ce974aefecdd2e1a1158c0a7c Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Fri, 9 Feb 2018 13:26:38 +0100 Subject: [PATCH] Fix helm chart to generate config.postgresURI The configuration was merged with the comment line above due to usage of the {{- ... -}} construct. --- contrib/helm/clair/templates/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/helm/clair/templates/configmap.yaml b/contrib/helm/clair/templates/configmap.yaml index e30cab3e..7c592bd4 100644 --- a/contrib/helm/clair/templates/configmap.yaml +++ b/contrib/helm/clair/templates/configmap.yaml @@ -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"