Files
charts/community/redis/1.0.5/templates/_validation.tpl
T

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 -}}