diff --git a/charts/redisoperator/Chart.yaml b/charts/redisoperator/Chart.yaml index a22af3c82..57d1003ef 100644 --- a/charts/redisoperator/Chart.yaml +++ b/charts/redisoperator/Chart.yaml @@ -4,7 +4,7 @@ appVersion: 1.2.4 apiVersion: v1 description: A Helm chart for the Spotahome Redis Operator name: redis-operator -version: 3.2.7 +version: 3.2.8 home: https://github.com/spotahome/redis-operator keywords: - "golang" diff --git a/operator/redisfailover/service/generator.go b/operator/redisfailover/service/generator.go index 8f78cbce4..e423850a6 100644 --- a/operator/redisfailover/service/generator.go +++ b/operator/redisfailover/service/generator.go @@ -567,7 +567,7 @@ func generateSentinelDeployment(rf *redisfailoverv1.RedisFailover, labels map[st Command: []string{ "sh", "-c", - "redis-cli -h $(hostname) -p 26379 ping", + "redis-cli -h $(hostname) -p 26379 sentinel get-master-addr-by-name mymaster | head -n 1 | grep -vq '127.0.0.1'", }, }, }, diff --git a/operator/redisfailover/service/generator_test.go b/operator/redisfailover/service/generator_test.go index 45bd85254..7cfa1546a 100644 --- a/operator/redisfailover/service/generator_test.go +++ b/operator/redisfailover/service/generator_test.go @@ -2158,7 +2158,7 @@ func TestSentinelCustomReadinessProbe(t *testing.T) { Command: []string{ "sh", "-c", - "redis-cli -h $(hostname) -p 26379 ping", + "redis-cli -h $(hostname) -p 26379 sentinel get-master-addr-by-name mymaster | head -n 1 | grep -vq '127.0.0.1'", }, }, },