From cf5eabd41aabcb9a12b4e033125c9fa9c5622894 Mon Sep 17 00:00:00 2001 From: Fabian Hinz Date: Thu, 19 Jul 2018 13:18:09 +0200 Subject: [PATCH] Helm: change postgresql connection string format in configmap template The PostgreSQL connection string in the configmap template for helm was changed to a key-value format to reflect the currently used format in the sample config file Fixes #561 --- 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 7c592bd478..330c0608e4 100644 --- a/contrib/helm/clair/templates/configmap.yaml +++ b/contrib/helm/clair/templates/configmap.yaml @@ -17,7 +17,7 @@ data: {{- 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" + source: "host={{ template "postgresql.fullname" . }} port=5432 user={{ .Values.postgresql.postgresUser }} password={{ .Values.postgresql.postgresPassword }} dbname={{ .Values.postgresql.postgresDatabase }} sslmode=disable statement_timeout=60000" {{ end }} # Number of elements kept in the cache