fix: wrong variable calling (#8)
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
{{- define "common.hpa.tpl" -}}
|
||||
{{- $top := first . }}
|
||||
{{- $autoscaling := index . 1 }}
|
||||
{{- if semverCompare ">=1.23.0" .Capabilities.KubeVersion.Version -}}
|
||||
{{- if semverCompare ">=1.23.0" $top.Capabilities.KubeVersion.Version -}}
|
||||
apiVersion: autoscaling/v2
|
||||
{{- else -}}
|
||||
apiVersion: autoscaling/v2beta2
|
||||
|
Reference in New Issue
Block a user