Skip to content

Commit

Permalink
fix(redis): fix standalone redis missing service account
Browse files Browse the repository at this point in the history
Since 18.8.3 (bitnami#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).
  • Loading branch information
Wielewout committed Jan 26, 2024
1 parent cfc94a7 commit edf69ac
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 edf69ac

Please sign in to comment.