From 550d8e73426266c1d7aa6207b9b7f9314395f560 Mon Sep 17 00:00:00 2001 From: Prabhu Jayakumar Date: Sat, 29 May 2021 12:20:17 +0530 Subject: [PATCH] Configure ssl for database connection Signed-off-by: Prabhu Jayakumar --- charts/unleash/Chart.yaml | 2 +- charts/unleash/templates/deployment.yaml | 2 ++ charts/unleash/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/unleash/Chart.yaml b/charts/unleash/Chart.yaml index c482185..7a88763 100644 --- a/charts/unleash/Chart.yaml +++ b/charts/unleash/Chart.yaml @@ -16,4 +16,4 @@ sources: - https://github.com/Unleash/unleash-docker - https://github.com/Unleash/helm-charts type: application -version: 1.1.0 +version: 1.1.1 diff --git a/charts/unleash/templates/deployment.yaml b/charts/unleash/templates/deployment.yaml index 91e587e..4f7ae61 100644 --- a/charts/unleash/templates/deployment.yaml +++ b/charts/unleash/templates/deployment.yaml @@ -46,6 +46,8 @@ spec: value: "{{ .Values.dbConfig.port }}" - name: DATABASE_USER value: "{{ .Values.dbConfig.user }}" + - name: DATABASE_SSL + value: "{{ .Values.dbConfig.ssl | default "false" }}" - name: DATABASE_URL value: "postgres://$(DATABASE_USER):$(DATABASE_PASS)@$(DATABASE_HOST):$(DATABASE_PORT)/$(DATABASE)" {{- if .Values.env }} diff --git a/charts/unleash/values.yaml b/charts/unleash/values.yaml index a468604..eb3d334 100644 --- a/charts/unleash/values.yaml +++ b/charts/unleash/values.yaml @@ -125,6 +125,7 @@ dbConfig: key: "" # if postgres dependency chart is used, this needs to be the same value as postgresql.postgresqlUsername user: unleash + ssl: false env: [] # - name: GOOGLE_CLIENT_ID