rancher-partner-charts/charts/aquarist-labs/s3gw/templates/chart-validation.yaml

20 lines
705 B
YAML

{{- if (and .Values.ingress.enabled (empty .Values.publicDomain)) }}
{{- fail "Please provide a value for `.Values.publicDomain`." }}
{{- end }}
{{- if (and .Values.ui.enabled (empty .Values.ui.publicDomain)) }}
{{- fail "Please provide a value for `.Values.ui.publicDomain`." }}
{{- end }}
{{- if (and .Values.useExistingSecret (empty .Values.defaultUserCredentialsSecret)) }}
{{- fail "Please provide a secret name for `.Values.defaultUserCredentialSecret`" }}
{{- end }}
{{- 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 }}