_validation.tpl 414 B

1234567891011
  1. {{- define "redis.validation" -}}
  2. {{- if not .Values.redisConfig.allowEmptyPassword -}}
  3. {{- if not .Values.redisConfig.password -}}
  4. {{- fail "Redis - Field [Password] is required when [Allow Empty Password] is false" -}}
  5. {{- end -}}
  6. {{- if contains "@" .Values.redisConfig.password -}}
  7. {{- fail "Redis - Field [Password] cannot contain '@'" -}}
  8. {{- end -}}
  9. {{- end -}}
  10. {{- end -}}