mirror of
https://github.com/truenas/charts.git
synced 2026-04-05 03:39:20 +08:00
* add `redis` to `community` train * add extra validation * add error message * enclose pattern in squotes * bump common
12 lines
414 B
Smarty
12 lines
414 B
Smarty
{{- define "redis.validation" -}}
|
|
{{- if not .Values.redisConfig.allowEmptyPassword -}}
|
|
{{- if not .Values.redisConfig.password -}}
|
|
{{- fail "Redis - Field [Password] is required when [Allow Empty Password] is false" -}}
|
|
{{- end -}}
|
|
{{- if contains "@" .Values.redisConfig.password -}}
|
|
{{- fail "Redis - Field [Password] cannot contain '@'" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|