Compare commits

...

1 commit

Author SHA1 Message Date
Rhea Danzey 04e2955c0e 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>
2023-03-27 15:06:23 -05:00

View file

@ -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." -}}