fix: wrong variable calling (#8)

This commit is contained in:
Wei-An Yen
2022-06-10 15:19:50 +08:00
committed by GitHub
parent 5d28270192
commit 7284144b77
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
{{- define "common.pdb.tpl" -}}
{{- $top := first . }}
{{- $pdb := index . 1 }}
{{- if semverCompare ">=1.21.0" .Capabilities.KubeVersion.Version -}}
{{- if semverCompare ">=1.21.0" $top.Capabilities.KubeVersion.Version -}}
apiVersion: policy/v1
{{- else -}}
apiVersion: policy/v1beta1