Allow maxUnavailable in webhook pdb

Signed-off-by: Rouke Broersma <mobrockers@gmail.com>
This commit is contained in:
Rouke Broersma 2023-05-22 11:13:21 +02:00 committed by Tim Ramlot
parent 659c95e202
commit eb2b4d8fbc
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D

View File

@ -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 }}