From 5526f09e02b8c285113c52396045232b0eb6b1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Tanhuanp=C3=A4=C3=A4?= Date: Wed, 22 Nov 2023 11:26:04 +0200 Subject: [PATCH] helm/hpa: Fix API version check, again --- helm/templates/06-hpa.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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