From eb2b4d8fbcde149a13d59626501a95e23c2d7ff5 Mon Sep 17 00:00:00 2001 From: Rouke Broersma Date: Mon, 22 May 2023 11:13:21 +0200 Subject: [PATCH] Allow maxUnavailable in webhook pdb Signed-off-by: Rouke Broersma --- .../cert-manager/templates/webhook-poddisruptionbudget.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/charts/cert-manager/templates/webhook-poddisruptionbudget.yaml b/deploy/charts/cert-manager/templates/webhook-poddisruptionbudget.yaml index c8a357cb1..61b47bd23 100644 --- a/deploy/charts/cert-manager/templates/webhook-poddisruptionbudget.yaml +++ b/deploy/charts/cert-manager/templates/webhook-poddisruptionbudget.yaml @@ -17,7 +17,7 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" - {{- with .Values.webhook.podDisruptionBudget.minAvailable }} + {{- with and .Values.webhook.podDisruptionBudget.minAvailable (not .Values.webhook.podDisruptionBudget.maxUnavailable) }} minAvailable: {{ . }} {{- end }} {{- with .Values.webhook.podDisruptionBudget.maxUnavailable }}