Skip to content

Commit

Permalink
use correct ssl mode in postgres URI (#397)
Browse files Browse the repository at this point in the history
* use correct ssl mode in postgres URI

Signed-off-by: Dax McDonald <[email protected]>

* Bump chart to 2.9.3 from 2.9.2

Signed-off-by: Dax McDonald <[email protected]>

---------

Signed-off-by: Dax McDonald <[email protected]>
Co-authored-by: Brady Todhunter <[email protected]>
  • Loading branch information
daxmc99 and Btodhunter authored Aug 28, 2024
1 parent 59d4e3e commit abca795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion stable/enterprise/templates/ui_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit abca795

Please sign in to comment.