Skip to content

Commit

Permalink
[bitnami/etcd] PDB review (#25896)
Browse files Browse the repository at this point in the history
Signed-off-by: Fran Mulero <[email protected]>
  • Loading branch information
fmulero authored May 15, 2024
1 parent 1ee381b commit 5235139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bitnami/etcd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ maintainers:
name: etcd
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/etcd
version: 10.0.8
version: 10.0.9
5 changes: 3 additions & 2 deletions bitnami/etcd/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

{{- if .Values.pdb.create }}
{{- $replicaCount := int .Values.replicaCount }}
{{- if and .Values.pdb.create (gt $replicaCount 1) }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: etcd
{{- if .Values.commonAnnotations }}
Expand Down

0 comments on commit 5235139

Please sign in to comment.