File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.11.0
18
+ version : 0.11.1
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -95,3 +95,14 @@ Return if ingress supports pathType.
95
95
{ {- define " kminion.ingress.supportsPathType" -} }
96
96
{ {- or (eq (include " kminion.ingress.isStable" .) " true" ) (and (eq (include " kminion.ingress.apiVersion" .) " networking.k8s.io/v1beta1" ) (semverCompare " >= 1.18-0" .Capabilities.KubeVersion.Version)) } }
97
97
{ {- end } }
98
+
99
+ { {/*
100
+ Return the appropriate apiVersion for podDisruptionBudget.
101
+ */} }
102
+ { {- define " kminion.podDisruptionBudget.apiVersion" -} }
103
+ { {- if $.Capabilities.APIVersions.Has " policy/v1/PodDisruptionBudget" } }
104
+ { {- print " policy/v1" } }
105
+ { {- else } }
106
+ { {- print " policy/v1beta1" } }
107
+ { {- end } }
108
+ { {- end } }
Original file line number Diff line number Diff line change 1
1
{{- if .Values.podDisruptionBudget }}
2
- apiVersion : policy/v1beta1
2
+ apiVersion : {{ include "kminion.podDisruptionBudget.apiVersion" . }}
3
3
kind : PodDisruptionBudget
4
4
metadata :
5
5
name : {{ template "kminion.fullname" . }}
16
16
selector :
17
17
matchLabels :
18
18
{{- include "kminion.selectorLabels" . | nindent 6}}
19
- {{- end }}
19
+ {{- end }}
You can’t perform that action at this time.
0 commit comments