mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
* initial commit * add some templates * fix config * add metadata and ci values * expose more config * add values * fix lint * add ui * add validation * whops * update description * formatting * rename app
14 lines
482 B
Smarty
14 lines
482 B
Smarty
{{- define "twofauth.validation" -}}
|
|
{{- if eq .Values.twofauthConfig.authenticationGuard "reverse-proxy-guard" -}}
|
|
|
|
{{- if not .Values.twofauthConfig.authProxyHeaderUser -}}
|
|
{{- fail "[Auth Proxy Header User] is required when using reverse-proxy-guard" -}}
|
|
{{- end -}}
|
|
|
|
{{- if not .Values.twofauthConfig.authProxyHeaderEmail -}}
|
|
{{- fail "[Auth Proxy Header Email] is required when using reverse-proxy-guard" -}}
|
|
{{- end -}}
|
|
|
|
{{- end }}
|
|
{{- end -}}
|