feat: bump resource api version (#7)

This commit is contained in:
Wei-An Yen
2022-06-10 14:56:01 +08:00
committed by GitHub
parent 7e70dd23e5
commit 5d28270192
5 changed files with 16 additions and 2 deletions

View File

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