mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
* add `redis` to `community` train * add extra validation * add error message * enclose pattern in squotes * bump common
12 lines
409 B
Smarty
12 lines
409 B
Smarty
{{- define "redis.configuration" -}}
|
|
configmap:
|
|
config:
|
|
enabled: true
|
|
data:
|
|
REDIS_PORT_NUMBER: {{ .Values.redisNetwork.redisPort | quote }}
|
|
ALLOW_EMPTY_PASSWORD: {{ ternary "yes" "no" .Values.redisConfig.allowEmptyPassword | quote }}
|
|
{{- if not .Values.redisConfig.allowEmptyPassword }}
|
|
REDIS_PASSWORD: {{ .Values.redisConfig.password | quote }}
|
|
{{- end }}
|
|
{{- end -}}
|