element-web: use autoscaling/v2 when possible

This commit is contained in:
Antoine Labarussias 2023-04-01 01:41:57 +02:00
parent d5a4ce63e6
commit 85aa23af78
No known key found for this signature in database
GPG key ID: 149D68C2439559EF

View file

@ -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 "element-web.fullname" . }}