kind: ConfigMap
metadata:
name: {{ template "common.configmapname.dbaas" . }}-config
+ namespace: {{ include "common.namespace.platform" . }}
labels:
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
redis.conf: |
dir "/data"
- {{- range $key, $value := .Values.dbaas.redis.config }}
+{{- if $.Values.dbaas.enableHighAvailability }}
+ {{- range $key, $value := .Values.dbaas.redis.ha_config }}
+ {{ $key }} {{ $value }}
+ {{- end }}
+{{- else }}
+ {{- range $key, $value := .Values.dbaas.redis.sa_config }}
{{ $key }} {{ $value }}
{{- end }}
+{{- end }}
{{- if $.Values.dbaas.enableHighAvailability }}
sentinel.conf: |