chore(argo-cd): Remove legacy API versions for PDBs (#1740)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
fbc8cb263c
commit
f6c884a096
12 changed files with 10 additions and 26 deletions
|
|
@ -34,19 +34,6 @@ Return the appropriate apiVersion for ingress
|
|||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the appropriate apiVersion for pod disruption budget
|
||||
*/}}
|
||||
{{- define "argo-cd.apiVersion.pdb" -}}
|
||||
{{- if .Values.apiVersionOverrides.pdb -}}
|
||||
{{- print .Values.apiVersionOverrides.pdb -}}
|
||||
{{- else if semverCompare "<1.21-0" (include "argo-cd.kubeVersion" .) -}}
|
||||
{{- print "policy/v1beta1" -}}
|
||||
{{- else -}}
|
||||
{{- print "policy/v1" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the appropriate apiVersion for cert-manager
|
||||
*/}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue