[bitnami/redis] Fix for REDIS_MASTER_HOST (#10797)

* Use non-headless master svc url when master=deployment (#10621)

Signed-off-by: AJ Romito <aromito@rcanalytics.com>

* Bump chart version

Signed-off-by: AJ Romito <aromito@rcanalytics.com>
This commit is contained in:
Anthony Romito
2022-06-22 10:20:08 -04:00
committed by GitHub
parent 4cefebb830
commit 94282aa81c
2 changed files with 2 additions and 2 deletions

View File

@@ -24,4 +24,4 @@ maintainers:
name: redis
sources:
- https://github.com/bitnami/bitnami-docker-redis
version: 16.12.2
version: 16.12.3

View File

@@ -126,7 +126,7 @@ spec:
- name: REDIS_REPLICATION_MODE
value: slave
- name: REDIS_MASTER_HOST
{{- if eq (int64 .Values.master.count) 1 }}
{{- if and (eq (int64 .Values.master.count) 1) (ne .Values.master.kind "Deployment") }}
value: {{ template "common.names.fullname" . }}-master-0.{{ template "common.names.fullname" . }}-headless.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
{{- else }}
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}