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:
parent
5626d0536f
commit
fb55cf6080
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
*/}}
|
||||
|
|
Loading…
Reference in a new issue