Compare commits

...

2 Commits

Author SHA1 Message Date
Benjamin Pinchon 323ac255c0
Merge 5d60407b7b into b8631cf531 2025-10-01 11:16:59 +08:00
Benjamin Pinchon 5d60407b7b feat(helm): support minAvailable in podDisruptionBudget
Signed-off-by: Benjamin Pinchon <dev@mdfr.me>
2025-09-26 11:08:50 +02:00
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.