From 71cb550cec0b0b73545ee6e89594465e6c93471a Mon Sep 17 00:00:00 2001 From: pieter Date: Thu, 20 Nov 2025 06:51:51 +0000 Subject: [PATCH] =?UTF-8?q?templates/pdb.yaml=20=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/pdb.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 templates/pdb.yaml diff --git a/templates/pdb.yaml b/templates/pdb.yaml new file mode 100644 index 0000000..c7056a9 --- /dev/null +++ b/templates/pdb.yaml @@ -0,0 +1,18 @@ +{{- if .Values.podDisruptionBudget.enabled }} +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ include "phpmyadmin-nginx.fullname" . }} + labels: + {{- include "phpmyadmin-nginx.labels" . | nindent 4 }} +spec: + {{- if .Values.podDisruptionBudget.minAvailable }} + minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} + {{- end }} + {{- if .Values.podDisruptionBudget.maxUnavailable }} + maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} + {{- end }} + selector: + matchLabels: + {{- include "phpmyadmin-nginx.selectorLabels" . | nindent 6 }} +{{- end }} \ No newline at end of file