chore(argo-workflows): Remove legacy API versions for PDBs (#1741)

Signed-off-by: yu-croco <yu.croco@gmail.com>

Co-authored-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
Aikawa 2022-12-30 01:31:39 +09:00 committed by GitHub
parent def1e657da
commit 10e3af1bcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 15 deletions

View file

@ -129,17 +129,6 @@ Return the appropriate apiVersion for ingress
{{- end -}}
{{- end -}}
{{/*
Return the appropriate apiVersion for pod disruption budget
*/}}
{{- define "argo-workflows.podDisruptionBudget.apiVersion" -}}
{{- if semverCompare "<1.21-0" (include "argo-workflows.kubeVersion" $) -}}
{{- print "policy/v1beta1" -}}
{{- else -}}
{{- print "policy/v1" -}}
{{- end -}}
{{- end -}}
{{/*
Return the target Kubernetes version
*/}}