Update _helpers.tpl to include pdb.apiversion

refrenced in template but missing in helpers

Signed-off-by: Daniel Ben-shoushan <daniel.benshoushan@gong.io>
This commit is contained in:
Daniel Ben-shoushan 2023-09-19 09:54:17 +03:00 committed by GitHub
parent 5626d0536f
commit fb55cf6080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,6 +206,14 @@ NOTE: Configuration keys must be stored as dict because YAML treats dot as separ
{{- toYaml $presets }}
{{- end -}}
{{/*
Use correct pdb version
*/}}
{{- define "argo-cd.podDisruptionBudget.apiVersion" -}}
{{- if semverCompare "<1.21-0" (include "argo-cd.kubeVersion" $) -}}
{{- print "policy/v1beta1" -}}
{{- else -}}
{{/*
Merge Argo Params Configuration with Preset Configuration
*/}}