diff --git a/charts/argo-cd/templates/_helpers.tpl b/charts/argo-cd/templates/_helpers.tpl index b5d62a6a..e0e2253c 100644 --- a/charts/argo-cd/templates/_helpers.tpl +++ b/charts/argo-cd/templates/_helpers.tpl @@ -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 */}}