refactor sentinel
All checks were successful
lint-and-test / lint-helm (push) Successful in 13s
release-charts-redis-replication / release (push) Successful in 21s
lint-and-test / chart-testing (push) Successful in 34s
renovate / renovate (push) Successful in 38s

This commit is contained in:
2026-01-08 15:42:48 -06:00
parent 2fd3129e70
commit 57c2ce938f
5 changed files with 27 additions and 63 deletions

View File

@@ -20,9 +20,8 @@ spec:
resources:
{{- with .Values.redisReplication.resources }}
{{- toYaml . | nindent 6 }}
{{ end }}
{{ if .Values.existingSecret.enabled }}
{{- end }}
{{- if .Values.existingSecret.enabled }}
redisSecret:
name: {{ .Values.existingSecret.name }}
key: {{ .Values.existingSecret.key }}
@@ -38,10 +37,10 @@ spec:
enabled: {{ .Values.redisReplication.redisExporter.enabled }}
image: "{{ .Values.redisReplication.redisExporter.image.repository }}:{{ .Values.redisReplication.redisExporter.image.tag }}"
{{- if .Values.redisSentinel.enabled }}
{{- if .Values.redisReplication.sentinel.enabled }}
sentinel:
image: "{{ .Values.redisSentinel.image.repository }}:{{ .Values.redisSentinel.image.tag }}"
imagePullPolicy: {{ .Values.redisSentinel.image.pullPolicy }}
image: "{{ .Values.redisReplication.sentinel.image.repository }}:{{ .Values.redisReplication.sentinel.image.tag }}"
imagePullPolicy: {{ .Values.redisReplication.sentinel.image.pullPolicy }}
{{ if .Values.existingSecret.enabled }}
redisSecret:
@@ -50,9 +49,9 @@ spec:
{{- end }}
resources:
{{- with .Values.redisSentinel.resources }}
{{- with .Values.redisReplication.sentinel.resources }}
{{- toYaml . | nindent 10 }}
{{- end }}
size: {{ .Values.redisSentinel.clusterSize }}
size: {{ .Values.redisReplication.sentinel.size }}
{{- end }}