Skip to content

Commit

Permalink
[bitnami/redis] Do not create master and replica serviceaccounts when…
Browse files Browse the repository at this point in the history
… using sentinel (bitnami#22716)

* fix(redis): skip creation of master and replica serviceaccount when using sentinel

Signed-off-by: wilmarguida <[email protected]>

* chore(redis): bump the chart version

Co-authored-by: Ibone González Mauraza <[email protected]>
Signed-off-by: Wilmar den Ouden <[email protected]>

---------

Signed-off-by: wilmarguida <[email protected]>
Signed-off-by: Wilmar den Ouden <[email protected]>
Signed-off-by: Ibone González Mauraza <[email protected]>
Co-authored-by: Ibone González Mauraza <[email protected]>
Co-authored-by: Ibone González Mauraza <[email protected]>
  • Loading branch information
3 people authored and anthosz committed Feb 1, 2024
1 parent 6293ab1 commit 3b1ad84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 .Values.master.serviceAccount.create }}
{{- if and .Values.master.serviceAccount.create (eq .Values.architecture "replication") (not .Values.sentinel.enabled) }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.master.serviceAccount.automountServiceAccountToken }}
Expand Down
2 changes: 1 addition & 1 deletion bitnami/redis/templates/replicas/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 .Values.replica.serviceAccount.create }}
{{- if and .Values.replica.serviceAccount.create (eq .Values.architecture "replication") (not .Values.sentinel.enabled) }}
apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: {{ .Values.replica.serviceAccount.automountServiceAccountToken }}
Expand Down

0 comments on commit 3b1ad84

Please sign in to comment.