diff --git a/cmd/relayproxy/helm-charts/relay-proxy/templates/hpa.yaml b/cmd/relayproxy/helm-charts/relay-proxy/templates/hpa.yaml index cf0159e0b6f..070847f17b6 100644 --- a/cmd/relayproxy/helm-charts/relay-proxy/templates/hpa.yaml +++ b/cmd/relayproxy/helm-charts/relay-proxy/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta1" (.Capabilities.APIVersions.Has "autoscaling/v2") }} kind: HorizontalPodAutoscaler metadata: name: {{ include "relay-proxy.fullname" . }}