|
@@ -432,7 +432,9 @@ data:
|
|
|
# as well, prepare the new config in `prepare-sentinel.conf` and move it atomically to the ultimate destination when it is complete.
|
|
|
cp /opt/bitnami/redis-sentinel/mounted-etc/sentinel.conf /opt/bitnami/redis-sentinel/etc/prepare-sentinel.conf
|
|
|
{{- if .Values.auth.enabled }}
|
|
|
+ {{- if not (contains "sentinel auth-pass" .Values.sentinel.configuration) }}
|
|
|
printf "\nsentinel auth-pass %s %s" "{{ .Values.sentinel.masterSet }}" "$REDIS_PASSWORD" >> /opt/bitnami/redis-sentinel/etc/prepare-sentinel.conf
|
|
|
+ {{- end }}
|
|
|
{{- if and .Values.auth.enabled .Values.auth.sentinel }}
|
|
|
printf "\nrequirepass %s" "$REDIS_PASSWORD" >> /opt/bitnami/redis-sentinel/etc/prepare-sentinel.conf
|
|
|
{{- end }}
|