mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-12-26 17:36:20 +00:00
Don't fail config validation if existingSecret is provided but .Vaues.signing_key.create is false (use existing key)
Signed-off-by: Rhea Danzey <rdanzey@element.io>
This commit is contained in:
parent
69e3bd82a9
commit
04e2955c0e
|
@ -1,6 +1,6 @@
|
|||
{{- define "validate.config" }}
|
||||
{{- if not .Values.signing_key.create -}}
|
||||
{{- fail "You must create a signing key for configuration.signing_key. (see https://github.com/matrix-org/dendrite/blob/master/docs/INSTALL.md#server-key-generation)" -}}
|
||||
{{- if and (not .Values.signing_key.create) (eq .Values.signing_key.existingSecret "") -}}
|
||||
{{- fail "You must create a signing key for configuration.signing_key OR specify an existing secret name in .Values.signing_key.existingSecret to mount it. (see https://github.com/matrix-org/dendrite/blob/master/docs/INSTALL.md#server-key-generation)" -}}
|
||||
{{- end -}}
|
||||
{{- if not (or .Values.dendrite_config.global.database.host .Values.postgresql.enabled) -}}
|
||||
{{- fail "Database server must be set." -}}
|
||||
|
|
Loading…
Reference in a new issue