mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[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:
@@ -24,4 +24,4 @@ maintainers:
|
||||
name: redis
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-redis
|
||||
version: 16.12.2
|
||||
version: 16.12.3
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user