From 5b26839b556a6612bbfa03aa6ac692adbbc17266 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 16 May 2024 13:58:44 +0200 Subject: [PATCH] fix: ssl needs to be disabled when postgres enabled (#145) --- charts/unleash/Chart.yaml | 2 +- charts/unleash/examples/debugLogging.yaml | 8 ++++++++ charts/unleash/templates/deployment.yaml | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 charts/unleash/examples/debugLogging.yaml diff --git a/charts/unleash/Chart.yaml b/charts/unleash/Chart.yaml index 72d0639..ea3d078 100644 --- a/charts/unleash/Chart.yaml +++ b/charts/unleash/Chart.yaml @@ -5,7 +5,7 @@ icon: https://docs.getunleash.io/img/logo.svg type: application -version: 4.2.1 +version: 4.2.2 appVersion: "5.12.2" diff --git a/charts/unleash/examples/debugLogging.yaml b/charts/unleash/examples/debugLogging.yaml new file mode 100644 index 0000000..6857485 --- /dev/null +++ b/charts/unleash/examples/debugLogging.yaml @@ -0,0 +1,8 @@ +env: + - name: LOG_LEVEL + value: debug + - name: MIGRATION_LOCK + value: "false" + - name: DATABASE_SSL + value: "false" + diff --git a/charts/unleash/templates/deployment.yaml b/charts/unleash/templates/deployment.yaml index 72584f3..a5b156a 100644 --- a/charts/unleash/templates/deployment.yaml +++ b/charts/unleash/templates/deployment.yaml @@ -51,6 +51,9 @@ spec: {{- if .Values.dbConfig.ssl }} - name: DATABASE_SSL value: {{ .Values.dbConfig.ssl | toJson | quote }} + {{- else if .Values.postgresql.enabled }} + - name: DATABASE_SSL + value: "false" {{- end }} {{- if .Values.dbConfig.schema }} - name: DATABASE_SCHEMA