From abca795cfb04c61d6242509bdd34634a2f405928 Mon Sep 17 00:00:00 2001 From: Dax McDonald <31839142+daxmc99@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:09:45 -0700 Subject: [PATCH] use correct ssl mode in postgres URI (#397) * use correct ssl mode in postgres URI Signed-off-by: Dax McDonald <31839142+daxmc99@users.noreply.github.com> * Bump chart to 2.9.3 from 2.9.2 Signed-off-by: Dax McDonald <31839142+daxmc99@users.noreply.github.com> --------- Signed-off-by: Dax McDonald <31839142+daxmc99@users.noreply.github.com> Co-authored-by: Brady Todhunter --- stable/enterprise/Chart.yaml | 2 +- stable/enterprise/templates/ui_secret.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/enterprise/Chart.yaml b/stable/enterprise/Chart.yaml index 9bcf3fc4..24fdccc4 100644 --- a/stable/enterprise/Chart.yaml +++ b/stable/enterprise/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: enterprise -version: "2.9.2" +version: "2.9.3" appVersion: "5.8.1" kubeVersion: 1.23.x - 1.30.x || 1.23.x-x - 1.30.x-x description: | diff --git a/stable/enterprise/templates/ui_secret.yaml b/stable/enterprise/templates/ui_secret.yaml index 15e28a30..614e4047 100644 --- a/stable/enterprise/templates/ui_secret.yaml +++ b/stable/enterprise/templates/ui_secret.yaml @@ -12,7 +12,7 @@ type: Opaque stringData: {{- if .Values.anchoreConfig.database.ssl }} - ANCHORE_APPDB_URI: 'postgresql://{{- template "enterprise.ui.dbUser" . -}}:{{- template "enterprise.ui.dbPassword" . -}}@{{ template "enterprise.dbHostname" . }}/{{ index .Values "postgresql" "auth" "database" }}?ssl={{- .Values.anchoreConfig.database.sslMode -}}' + ANCHORE_APPDB_URI: 'postgresql://{{- template "enterprise.ui.dbUser" . -}}:{{- template "enterprise.ui.dbPassword" . -}}@{{ template "enterprise.dbHostname" . }}/{{ index .Values "postgresql" "auth" "database" }}?sslMode={{- .Values.anchoreConfig.database.sslMode -}}' {{- else }} ANCHORE_APPDB_URI: 'postgresql://{{- template "enterprise.ui.dbUser" . -}}:{{- template "enterprise.ui.dbPassword" . -}}@{{ template "enterprise.dbHostname" . }}/{{ index .Values "postgresql" "auth" "database" }}' {{- end }}