Skip to content

Commit 94c9f70

Browse files
[charts/redis-ha] Correctly handle existing secret conditions for auth (#364)
* fix(redis-ha): Correctly handle existing secret conditions for auth in ServiceAccount Signed-off-by: Aaron Layfield <[email protected]> * chore(redis-ha): Bump chart version to 4.35.1 Signed-off-by: Aaron Layfield <[email protected]> --------- Signed-off-by: Aaron Layfield <[email protected]>
1 parent e04d0ab commit 94c9f70

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

charts/redis-ha/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- redis
66
- keyvalue
77
- database
8-
version: 4.35.0
8+
version: 4.35.1
99
appVersion: 8.2.2
1010
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
1111
icon: https://img.icons8.com/external-tal-revivo-shadow-tal-revivo/24/external-redis-an-in-memory-data-structure-project-implementing-a-distributed-logo-shadow-tal-revivo.png

charts/redis-ha/templates/redis-ha-serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ metadata:
1919
{{- if or .Values.auth .Values.sentinel.auth }}
2020
secrets:
2121
{{- end }}
22+
{{- if and (and (.Values.auth) (.Values.sentinel.auth)) (eq (.Values.existingSecret) (.Values.sentinel.existingSecret)) }}
23+
- name: {{ default (include "redis-ha.fullname" .) (tpl (.Values.existingSecret | default "" ) . ) }}
24+
{{- else }}
2225
{{- if .Values.auth }}
2326
- name: {{ default (include "redis-ha.fullname" .) (tpl (.Values.existingSecret | default "" ) . ) }}
2427
{{- end }}
2528
{{- if .Values.sentinel.auth }}
2629
- name: {{ default (printf "%s-sentinel" (include "redis-ha.fullname" .)) (tpl (.Values.sentinel.existingSecret | default "" ) . ) }}
2730
{{- end }}
31+
{{- end }}
2832
{{- if .Values.imagePullSecrets }}
2933
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 0 }}
3034
{{- end }}

0 commit comments

Comments
 (0)