matrix-synapse: Check for redis/postgres password

This commit is contained in:
Alexander Olofsson 2021-03-20 19:07:12 +01:00
parent 9e17014fe0
commit ed1fe25d80
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 13 additions and 2 deletions

View file

@ -1,4 +1,10 @@
{{- $needsVolumePermissions := and .Values.volumePermissions.enabled (or .Values.persistence.enabled .Values.persistence.existingClaim) }}
{{- if (and .Values.postgresql.enabled (not .Values.postgresql.postgresqlPassword)) -}}
{{- fail "You must specify a static postgres password if using the included postgres chart" -}}
{{- end -}}
{{- if (and .Values.redis.enabled (and .Values.redis.usePassword (not .Values.redis.password))) -}}
{{- fail "You must specify a static redis password if using the included redis chart" -}}
{{- end -}}
---
# Server: {{ required "A valid serverName is required" .Values.serverName }}
apiVersion: apps/v1

View file

@ -485,6 +485,9 @@ wellknown:
postgresql:
enabled: true
# XXX Change me!
postgresqlPassword: synapse
postgresqlUsername: synapse
postgresqlDatabase: synapse
@ -511,8 +514,10 @@ externalPostgresql:
redis:
enabled: true
# usePassword: false
# password: synapse
# XXX Change me!
usePassword: true
password: synapse
cluster:
enabled: false
master: