This repository was archived by the owner on Aug 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apiVersion : v1
22description : High Performance, Kubernetes Native Object Storage
33name : minio
4- version : 8.0.16
4+ version : 8.0.17
55appVersion : master
66keywords :
77- storage
Original file line number Diff line number Diff line change @@ -31,6 +31,17 @@ Create chart name and version as used by the chart label.
3131{ {- printf " %s-%s" .Chart.Name .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" -} }
3232{ {- end -} }
3333
34+ { {/*
35+ Return the appropriate apiVersion for poddisruptionbudget.
36+ */} }
37+ { {- define " minio.pdb.apiVersion" -} }
38+ { {- if semverCompare " <1.21-0" .Capabilities.KubeVersion.Version -} }
39+ { {- print " policy/v1beta1" -} }
40+ { {- else -} }
41+ { {- print " policy/v1" -} }
42+ { {- end -} }
43+ { {- end -} }
44+
3445{ {/*
3546Return the appropriate apiVersion for networkpolicy.
3647*/} }
Original file line number Diff line number Diff line change 11{{- if .Values.podDisruptionBudget.enabled }}
2- apiVersion : policy/v1beta1
2+ apiVersion : {{ template "minio.pdb.apiVersion" . }}
33kind : PodDisruptionBudget
44metadata :
55 name : minio
1010 selector :
1111 matchLabels :
1212 app : {{ template "minio.name" . }}
13- {{- end }}
13+ {{- end }}
You can’t perform that action at this time.
0 commit comments