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 }} {{- end }}
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
name: minio name: {{ template "minio.fullname" . }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
spec: spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} {{- with .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector: selector:
matchLabels: matchLabels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}

View File

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