mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06: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" }}
|
{{- define "validate.config" }}
|
||||||
{{- if not .Values.signing_key.create -}}
|
{{- if and (not .Values.signing_key.create) (eq .Values.signing_key.existingSecret "") -}}
|
||||||
{{- 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)" -}}
|
{{- 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 -}}
|
{{- end -}}
|
||||||
{{- if not (or .Values.dendrite_config.global.database.host .Values.postgresql.enabled) -}}
|
{{- if not (or .Values.dendrite_config.global.database.host .Values.postgresql.enabled) -}}
|
||||||
{{- fail "Database server must be set." -}}
|
{{- fail "Database server must be set." -}}
|
||||||
|
|
Loading…
Reference in a new issue