Started adding different assertions and checks of values, so that less invalid configuration is possible.

This commit is contained in:
TheAnachronism 2024-02-18 16:45:37 +01:00
parent ad61dae136
commit e3faff7acf
Signed by: TheAnachronism
GPG Key ID: 1F9B1A7E451A4A59

View File

@ -16,6 +16,11 @@ stringData:
{{- fail "When enabling the administration endpoint, a value for authentication has the supplied." -}}
{{- end -}}
{{- end -}}
{{- range $entry := .Values.docspell.server.openid -}}
{{- if and (not $entry.provider.userUrl) (not $entry.provider.signKey) -}}
{{- fail (printf "Failure for %s, if no userUrl is set a signKey has to be specified." $entry.provider.providerId) -}}
{{- end -}}
{{- end -}}
{{- if eq .Values.docspell.server.backend.signup.mode "invite" -}}
{{- if not .Values.docspell.server.backend.signup.newInvitePassword -}}
{{- fail "Invite password has to be set, when using signup mode 'invite'." -}}