Merge branch 'autoscaling-v2-support' into 'master'
autoscaler api version based on k8s release See merge request ananace/charts!54
This commit is contained in:
commit
a5eeee7efa
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
{{- if .Values.autoscaling.enabled }}
|
||||
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" -}}
|
||||
apiVersion: autoscaling/v2
|
||||
{{- else -}}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
{{- end }}
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "matrix-media-repo.fullname" . }}
|
||||
|
|
Loading…
Reference in a new issue