UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5c39454b authored by Micah Nagel's avatar Micah Nagel Committed by kevin.wilder
Browse files

chore: fix ssl mode thingy

parent d410e29b
No related branches found
No related tags found
1 merge request!295Resolve "release-1.2.0"
......@@ -66,7 +66,7 @@ spec:
license: {{ .license }}
{{- end }}
{{- with .Values.addons.mattermost.database }}
{{- if and .username .password .host .port .database .ssl_mode }}
{{- if and .username .password .host .port .database }}
database:
secret: "mattermost-database-secret"
{{- else }}
......
......@@ -27,7 +27,7 @@ data:
---
{{- with .Values.addons.mattermost.database }}
{{- if and .username .password .host .port .database .ssl_mode }}
{{- if and .username .password .host .port .database }}
apiVersion: v1
kind: Secret
type: Opaque
......@@ -39,8 +39,8 @@ metadata:
app.kubernetes.io/component: "collaboration-tools"
{{- include "commonLabels" $ | nindent 4}}
stringData:
DB_CONNECTION_CHECK_URL: "postgres://{{ .username }}:{{ .password }}@{{ .host }}:{{ .port }}/{{ .database }}?connect_timeout=10&sslmode={{ .ssl_mode }}"
DB_CONNECTION_STRING: "postgres://{{ .username }}:{{ .password }}@{{ .host }}:{{ .port }}/{{ .database }}?connect_timeout=10&sslmode={{ .ssl_mode }}"
DB_CONNECTION_CHECK_URL: "postgres://{{ .username }}:{{ .password }}@{{ .host }}:{{ .port }}/{{ .database }}?connect_timeout=10&sslmode={{ .ssl_mode | default "disable" }}"
DB_CONNECTION_STRING: "postgres://{{ .username }}:{{ .password }}@{{ .host }}:{{ .port }}/{{ .database }}?connect_timeout=10&sslmode={{ .ssl_mode | default "disable" }}"
{{- end }}
{{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment