Skip to content

Commit 2d8e19f

Browse files
authoredJun 13, 2024
[bitnami/redis] Fix sentinel PDB condition (#27080)
1 parent 1da7791 commit 2d8e19f

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed
 

‎bitnami/redis/CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3-
## 19.5.2 (2024-06-06)
3+
## 19.5.3 (2024-06-12)
44

5-
* [bitnami/redis] Release 19.5.2 ([#27012](https://github.com/bitnami/charts/pull/27012))
5+
* [bitnami/redis] Fix sentinel PDB condition ([#27080](https://github.com/bitnami/charts/pull/27080))
6+
7+
## <small>19.5.2 (2024-06-06)</small>
8+
9+
* [bitnami/redis] Release 19.5.2 (#27012) ([128a592](https://github.com/bitnami/charts/commit/128a59210d13d4619c9c80aa0631897f0d981917)), closes [#27012](https://github.com/bitnami/charts/issues/27012)
610

711
## <small>19.5.1 (2024-06-04)</small>
812

‎bitnami/redis/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ maintainers:
3636
name: redis
3737
sources:
3838
- https://github.com/bitnami/charts/tree/main/bitnami/redis
39-
version: 19.5.2
39+
version: 19.5.3

‎bitnami/redis/templates/master/pdb.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Copyright Broadcom, Inc. All Rights Reserved.
33
SPDX-License-Identifier: APACHE-2.0
44
*/}}
5-
6-
{{- if and .Values.master.pdb.create (gt (int64 .Values.master.count) 0) (or (eq .Values.architecture "replication") (not .Values.sentinel.enabled)) }}
5+
{{- $pdb := coalesce .Values.pdb .Values.master.pdb }}
6+
{{- if and $pdb.create (gt (int64 .Values.master.count) 0) (or (not (eq .Values.architecture "replication")) (not .Values.sentinel.enabled)) }}
77
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
88
kind: PodDisruptionBudget
99
metadata:
@@ -15,11 +15,11 @@ metadata:
1515
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
1616
{{- end }}
1717
spec:
18-
{{- if .Values.master.pdb.minAvailable }}
19-
minAvailable: {{ .Values.master.pdb.minAvailable }}
18+
{{- if $pdb.minAvailable }}
19+
minAvailable: {{ $pdb.minAvailable }}
2020
{{- end }}
21-
{{- if or .Values.master.pdb.maxUnavailable (not .Values.master.pdb.minAvailable)}}
22-
maxUnavailable: {{ .Values.master.pdb.maxUnavailable | default 1 }}
21+
{{- if or $pdb.maxUnavailable (not $pdb.minAvailable)}}
22+
maxUnavailable: {{ $pdb.maxUnavailable | default 1 }}
2323
{{- end }}
2424
selector:
2525
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 6 }}

‎bitnami/redis/templates/replicas/pdb.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
33
SPDX-License-Identifier: APACHE-2.0
44
*/}}
55

6-
{{- $pdb := coalesce .Values.replica.pdb .Values.pdb }}
6+
{{- $pdb := coalesce .Values.pdb .Values.replica.pdb }}
77
{{- if and (eq .Values.architecture "replication") (not .Values.sentinel.enabled) $pdb.create }}
88
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
99
kind: PodDisruptionBudget

‎bitnami/redis/templates/sentinel/pdb.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Copyright Broadcom, Inc. All Rights Reserved.
33
SPDX-License-Identifier: APACHE-2.0
44
*/}}
5-
6-
{{- if and (eq .Values.architecture "replication") (not .Values.sentinel.enabled) .Values.replica.pdb.create }}
5+
{{- $pdb := coalesce .Values.pdb .Values.replica.pdb }}
6+
{{- if and (eq .Values.architecture "replication") .Values.sentinel.enabled $pdb.create }}
77
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
88
kind: PodDisruptionBudget
99
metadata:
@@ -15,11 +15,11 @@ metadata:
1515
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
1616
{{- end }}
1717
spec:
18-
{{- if .Values.replica.pdb.minAvailable }}
19-
minAvailable: {{ .Values.replica.pdb.minAvailable }}
18+
{{- if $pdb.minAvailable }}
19+
minAvailable: {{ $pdb.minAvailable }}
2020
{{- end }}
21-
{{- if or .Values.replica.pdb.maxUnavailable (not .Values.replica.pdb.minAvailable) }}
22-
maxUnavailable: {{ .Values.replica.pdb.maxUnavailable | default 1 }}
21+
{{- if or $pdb.maxUnavailable (not $pdb.minAvailable) }}
22+
maxUnavailable: {{ $pdb.maxUnavailable | default 1 }}
2323
{{- end }}
2424
selector:
2525
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 6 }}

0 commit comments

Comments
 (0)