[bitnami/redis] Ignore auth for sentinel liveness if auth is disabled (#7996)

Authored-by: Nigel Foucha <nfoucha@ecr.ai>
This commit is contained in:
Nigel Foucha
2021-11-02 09:32:43 -04:00
committed by GitHub
parent df0d773655
commit 5ad65863df
2 changed files with 3 additions and 1 deletions

View File

@@ -25,4 +25,4 @@ name: redis
sources:
- https://github.com/bitnami/bitnami-docker-redis
- http://redis.io/
version: 15.5.3
version: 15.5.4

View File

@@ -67,8 +67,10 @@ data:
ping_sentinel.sh: |-
#!/bin/bash
{{- if .Values.auth.sentinel }}
[[ -f $REDIS_PASSWORD_FILE ]] && export REDIS_PASSWORD="$(< "${REDIS_PASSWORD_FILE}")"
[[ -n "$REDIS_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_PASSWORD"
{{- end }}
response=$(
timeout -s 3 $1 \
redis-cli \