Add existingSecret example to values.yaml and add existing secret to fail condition
This commit is contained in:
parent
d642502019
commit
d412270689
2 changed files with 15 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
{{- $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" -}}
|
||||
{{- if (and .Values.postgresql.enabled (and (not .Values.postgresql.postgresqlPassword) (not .Values.postgresql.existingSecret))) -}}
|
||||
{{- fail "You must specify a static postgres password or existing secret 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" -}}
|
||||
{{- if (and .Values.redis.enabled (and .Values.redis.usePassword (and (not .Values.redis.password) (not .Values.redis.existingSecret)))) -}}
|
||||
{{- fail "You must specify a static redis password or existing secret if using the included redis chart" -}}
|
||||
{{- end -}}
|
||||
---
|
||||
# Server: {{ required "A valid serverName is required" .Values.serverName }}
|
||||
|
|
|
@ -592,6 +592,11 @@ postgresql:
|
|||
# XXX Change me!
|
||||
postgresqlPassword: synapse
|
||||
|
||||
## Or use existing secret with "postgresql-password" key
|
||||
## instead of static password
|
||||
##
|
||||
# existingSecret: postgresql-secret
|
||||
|
||||
postgresqlUsername: synapse
|
||||
postgresqlDatabase: synapse
|
||||
|
||||
|
@ -629,10 +634,15 @@ externalPostgresql:
|
|||
redis:
|
||||
enabled: true
|
||||
|
||||
# XXX Change me!
|
||||
usePassword: true
|
||||
# XXX Change me!
|
||||
password: synapse
|
||||
|
||||
## Or use existing secret with "redis-password" key
|
||||
## instead of static password
|
||||
##
|
||||
# existingSecret: redis-secret
|
||||
|
||||
cluster:
|
||||
enabled: false
|
||||
master:
|
||||
|
|
Loading…
Reference in a new issue