diff --git a/helm/templates/06-hpa.yaml b/helm/templates/06-hpa.yaml index 56d027e..6e7c0b9 100644 --- a/helm/templates/06-hpa.yaml +++ b/helm/templates/06-hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.hpa.enabled -}} -{{- if (.Capabilities.APIVersions.Has "autoscaling.apiserver.k8s.io/v2") }} +{{- if (.Capabilities.APIVersions.Has "autoscaling/v2") }} apiVersion: autoscaling/v2 {{- else }} apiVersion: autoscaling/v2beta2