From d38c184ded29b15e01fcab8476d352e32ccf99d3 Mon Sep 17 00:00:00 2001 From: hanayo04 Date: Thu, 13 Jun 2024 16:24:26 +0900 Subject: [PATCH] fix --- akka/templates/autoscaling.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akka/templates/autoscaling.yaml b/akka/templates/autoscaling.yaml index 870d2b3c..f4117686 100644 --- a/akka/templates/autoscaling.yaml +++ b/akka/templates/autoscaling.yaml @@ -29,8 +29,9 @@ spec: apiVersion: apps/v1 name: "{{ template "akka.fullname" . }}" {{- end }} ---- + {{- if .Values.autoscalingRollout.enabled -}} +--- {{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion }} apiVersion: autoscaling/v2 {{- else }}