mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix(helm): use PodDisruptionBudget v1 for newer k8s versions (#16466)
This commit is contained in:
parent
e47a31f9fc
commit
85ff76e7b0
@ -1,5 +1,9 @@
|
||||
{{- if .Values.podDisruptionBudget.enabled }}
|
||||
{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodDisruptionBudget") }}
|
||||
apiVersion: policy/v1beta1
|
||||
{{- else }}
|
||||
apiVersion: policy/v1
|
||||
{{- end }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: minio
|
||||
@ -11,4 +15,4 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "minio.name" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user