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