2023-07-10 14:02:28 +00:00
|
|
|
{{- if (and .Values.ingress.enabled (empty .Values.publicDomain)) }}
|
2023-04-28 17:57:59 +00:00
|
|
|
{{- fail "Please provide a value for `.Values.publicDomain`." }}
|
|
|
|
{{- end }}
|
|
|
|
|
2023-08-04 18:31:53 +00:00
|
|
|
{{- if (and .Values.ingress.enabled (and .Values.ui.enabled (empty .Values.ui.publicDomain))) }}
|
2023-04-28 17:57:59 +00:00
|
|
|
{{- fail "Please provide a value for `.Values.ui.publicDomain`." }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if (and .Values.useExistingSecret (empty .Values.defaultUserCredentialsSecret)) }}
|
2023-08-04 18:31:53 +00:00
|
|
|
{{- fail "Please provide a secret name for `.Values.defaultUserCredentialsSecret`" }}
|
2023-04-28 17:57:59 +00:00
|
|
|
{{- end }}
|
2023-07-10 14:02:28 +00:00
|
|
|
|
|
|
|
{{- if .Values.useCertManager }}
|
|
|
|
{{- if eq .Values.tlsIssuer "s3gw-letsencrypt-issuer" }}
|
|
|
|
{{- if eq .Values.email "mail@example.com" }}
|
|
|
|
{{- fail "Please provide a valid email for letsencrypt" }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|