From fb55cf6080d350023c463718e213848b6b65bb1a Mon Sep 17 00:00:00 2001 From: Daniel Ben-shoushan Date: Tue, 19 Sep 2023 09:54:17 +0300 Subject: [PATCH] Update _helpers.tpl to include pdb.apiversion refrenced in template but missing in helpers Signed-off-by: Daniel Ben-shoushan --- charts/argo-cd/templates/_helpers.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */}}