From 4196ef605e0804b547dfae943d042e35831b772b Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 26 Oct 2018 18:59:19 +0300 Subject: [PATCH] [stable/kong] Cassandra, "wait-for-db" initContainer failed to start: Error: [postgres error] could not retrieve server_version: connection refused (#8681) * [stable/kong] Cassandra, "wait-for-db" initContainer failed to start: Error: [postgres error] could not retrieve server_version: connection refused Signed-off-by: Dmitry Kozlov * [stable/kong] change appVersion to 0.14.1 Signed-off-by: Dmitry Kozlov * [stable/kong] change Chart.yaml version to 0.5.2 Signed-off-by: Dmitry Kozlov * [stable/kong] added new line in Chart.yaml Signed-off-by: Dmitry Kozlov * [stable/kong] fix Chart.yaml Signed-off-by: Dmitry Kozlov --- stable/kong/Chart.yaml | 2 +- stable/kong/templates/deployment.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stable/kong/Chart.yaml b/stable/kong/Chart.yaml index 7783e6cdc1..32ca5366de 100644 --- a/stable/kong/Chart.yaml +++ b/stable/kong/Chart.yaml @@ -10,5 +10,5 @@ maintainers: name: kong sources: - https://github.com/Kong/kong -version: 0.5.1 +version: 0.5.2 appVersion: 0.14.1 diff --git a/stable/kong/templates/deployment.yaml b/stable/kong/templates/deployment.yaml index 3e713d88d9..1d11f9500d 100644 --- a/stable/kong/templates/deployment.yaml +++ b/stable/kong/templates/deployment.yaml @@ -53,6 +53,10 @@ spec: - name: KONG_CASSANDRA_CONTACT_POINTS value: {{ template "kong.cassandra.fullname" . }} {{- end }} + {{- range $key, $val := .Values.env }} + - name: KONG_{{ $key | upper}} + value: {{ $val | quote }} + {{- end}} command: [ "/bin/sh", "-c", "until kong start; do echo 'waiting for db'; sleep 1; done; kong stop" ] containers: - name: {{ template "kong.name" . }}