fix HorizontalPodAutoscaler apiVersion

This commit is contained in:
shcherbak 2024-03-28 23:12:37 +02:00 committed by Boky
parent e3898ed071
commit 55f2f71dd5
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,11 @@
{{- $fullName := include (print $chart ".fullname") . -}}
{{- $labels := include (print $chart ".labels") . -}}
{{- $kind := "StatefulSet" -}}
apiVersion: {{ .Values.autoscaling.apiVersion }}
{{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion }}
apiVersion: autoscaling/v2
{{- else }}
apiVersion: autoscaling/v2beta1
{{- end }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ $fullName | quote }}

View file

@ -95,7 +95,6 @@ autoscaling:
# targetMemoryUtilizationPercentage: 80
labels: {}
annotations: {}
apiVersion: "autoscaling/v2beta1"
nodeSelector: {}
tolerations: []