mirror of
https://github.com/truenas/charts.git
synced 2026-04-08 21:28:46 +08:00
* initial commit * add templates and values * whops * remove caps * metadata + read me * add more tests * add questions and validation * add group
16 lines
602 B
Smarty
16 lines
602 B
Smarty
{{- define "linkding.validation" -}}
|
|
|
|
{{- if .Values.linkdingConfig.enableAuthProxy -}}
|
|
{{- if not .Values.linkdingConfig.authProxyUsernameHeader -}}
|
|
{{- fail "Linkding - [Auth Proxy Username Header] is required when [Auth Proxy] is enabled" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if or .Values.linkdingConfig.username .Values.linkdingConfig.password -}}
|
|
{{- if not (and .Values.linkdingConfig.username .Values.linkdingConfig.password) -}}
|
|
{{- fail "Linkding - Expected none or both [Username] and [Password] set, but only 1 set." -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|