[stable/redis] Collect metrics from sentinels when enabled (#15156)

* [stable/redis] Collect metrics from sentinels when enabled

Signed-off-by: juan131 <juan@bitnami.com>

* Rebase branch from master

Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
Juan Ariza Toledano
2019-07-03 06:26:31 -07:00
committed by Kubernetes Prow Robot
parent 444f959fd6
commit a8332d6cdf
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: redis
version: 8.0.15
version: 8.0.16
appVersion: 5.0.5
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
@@ -53,10 +53,12 @@ spec:
{{- end }}
env:
- name: REDIS_ADDR
{{- if .Values.cluster.enabled }}
{{- if and .Values.cluster.enabled .Values.sentinel.enabled }}
value: {{ printf "%s:%d" ( include "redis.fullname" . ) ( int .Values.sentinel.service.redisPort ) | quote }}
{{- else if .Values.cluster.enabled }}
value: {{ printf "%s-master:%d,%s-slave:%d" ( include "redis.fullname" . ) ( int .Values.redisPort ) ( include "redis.fullname" . ) ( int .Values.redisPort ) | quote }}
{{- else }}
value: {{ printf "%s-master:%d" (include "redis.fullname" . ) (int .Values.redisPort) | quote }}
value: {{ printf "%s-master:%d" ( include "redis.fullname" . ) (int .Values.redisPort) | quote }}
{{- end }}
- name: REDIS_ALIAS
value: {{ template "redis.fullname" . }}