fix: wrong removing space (#9)

This commit is contained in:
Wei-An Yen
2022-06-10 15:57:40 +08:00
committed by GitHub
parent 7284144b77
commit 54b4a74b85
4 changed files with 10 additions and 10 deletions

View File

@ -3,11 +3,11 @@
{{- define "common.hpa.tpl" -}}
{{- $top := first . }}
{{- $autoscaling := index . 1 }}
{{- if semverCompare ">=1.23.0" $top.Capabilities.KubeVersion.Version -}}
{{- if semverCompare ">=1.23.0" $top.Capabilities.KubeVersion.Version }}
apiVersion: autoscaling/v2
{{- else -}}
{{- else }}
apiVersion: autoscaling/v2beta2
{{- end -}}
{{- end }}
kind: HorizontalPodAutoscaler
metadata:
{{- include "common.metadata" (list $top) | nindent 2 }}