autoscaler api version based on k8s release
This commit is contained in:
parent
b19c0d464f
commit
03847114c4
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
{{- if .Values.autoscaling.enabled }}
|
||||
{{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
apiVersion: autoscaling/v2
|
||||
{{- else -}}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
{{- end }}
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "matrix-media-repo.fullname" . }}
|
||||
|
|
Loading…
Reference in a new issue