feat(helm): support minAvailable in podDisruptionBudget

Signed-off-by: Benjamin Pinchon <dev@mdfr.me>
This commit is contained in:
Benjamin Pinchon 2025-04-28 21:21:44 +02:00
parent 456d9462e5
commit 5d60407b7b
2 changed files with 9 additions and 3 deletions

View File

@ -6,11 +6,16 @@ apiVersion: policy/v1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: minio
name: {{ template "minio.fullname" . }}
labels:
app: {{ template "minio.name" . }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
{{- with .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: {{ template "minio.name" . }}

View File

@ -585,7 +585,8 @@ networkPolicy:
##
podDisruptionBudget:
enabled: false
maxUnavailable: 1
maxUnavailable: ~
minAvailable: ~
## Specify the service account to use for the MinIO pods. If 'create' is set to 'false'
## and 'name' is left unspecified, the account 'default' will be used.