From 690d26edbac2605b19900549b70d74fa47bdfef9 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/_config.yaml.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/helm/clair/templates/_config.yaml.tpl b/contrib/helm/clair/templates/_config.yaml.tpl index 6d823706..49c478c9 100644 --- a/contrib/helm/clair/templates/_config.yaml.tpl +++ b/contrib/helm/clair/templates/_config.yaml.tpl @@ -8,7 +8,7 @@ clair: {{- 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.