File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22appVersion : v1.7.3
33description : A Helm chart for Argo Events, the event-driven workflow automation framework
44name : argo-events
5- version : 2.0.7
5+ version : 2.0.8
66home : https://github.com/argoproj/argo-helm
77icon : https://argoproj.github.io/argo-events/assets/logo.png
88keywords :
@@ -15,6 +15,4 @@ maintainers:
1515 url : https://argoproj.github.io/
1616annotations :
1717 artifacthub.io/changes : |
18- - "[Fixed]: avoid app.kubernetes.io/version kubernetes label from exceeding maximum length (63)
19- - "[Fixed]: generated value for app.kubernetes.io/version label is now valid even when defining a controller/webhook .image.tag with a SHA digest"
20- - "[Fixed]: webhook.image.tag value now overrides the tag in the webhook deployment"
18+ - "[Fixed]: use policy/v1 for poddisruptionbudgets, when available
Original file line number Diff line number Diff line change @@ -125,3 +125,14 @@ Return the default Argo Events app version
125125{ {- define " argo-events.defaultTag" -} }
126126 { {- default .Chart.AppVersion .Values.global.image.tag } }
127127{ {- end -} }
128+
129+ { {/*
130+ Define Pdb apiVersion
131+ */} }
132+ { {- define " argo-events.pdb.apiVersion" -} }
133+ { {- if .Capabilities.APIVersions.Has " policy/v1" } }
134+ { {- printf " policy/v1" -} }
135+ { {- else } }
136+ { {- printf " policy/v1beta1" -} }
137+ { {- end } }
138+ { {- end } }
Original file line number Diff line number Diff line change 11{{- if .Values.controller.pdb.enabled }}
2- apiVersion : policy/v1beta1
2+ apiVersion : {{ template "argo-events.pdb.apiVersion" . }}
33kind : PodDisruptionBudget
44metadata :
55 name : {{ template "argo-events.controller.fullname" . }}
Original file line number Diff line number Diff line change 11{{- if and .Values.webhook.enabled .Values.webhook.pdb.enabled (not .Values.controller.rbac.namespaced) }}
2- apiVersion : policy/v1beta1
2+ apiVersion : {{ template "argo-events.pdb.apiVersion" . }}
33kind : PodDisruptionBudget
44metadata :
55 name : {{ template "argo-events.webhook.fullname" . }}
You can’t perform that action at this time.
0 commit comments