Skip to content

Commit

Permalink
fix(redis): fix standalone redis missing service account (#22747)
Browse files Browse the repository at this point in the history
Since 18.8.3 (#22716) no service account is created with architecture set to standalone.

In this case the serviceaccount and application condition didn't match for master (instead the condition for replicas was used for the master service account).

Signed-off-by: Wout Van De Wiel <[email protected]>
  • Loading branch information
Wielewout authored Jan 29, 2024
1 parent c72da80 commit bf435ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitnami/redis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ maintainers:
name: redis
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/redis
version: 18.9.0
version: 18.9.1
2 changes: 1 addition & 1 deletion bitnami/redis/templates/master/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright VMware, Inc.
SPDX-License-Identifier: APACHE-2.0
*/}}

{{- if and .Values.master.serviceAccount.create (eq .Values.architecture "replication") (not .Values.sentinel.enabled) }}
{{- if and .Values.master.serviceAccount.create (or (not (eq .Values.architecture "replication")) (not .Values.sentinel.enabled)) }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.master.serviceAccount.automountServiceAccountToken }}
Expand Down

0 comments on commit bf435ef

Please sign in to comment.