We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea6f2a commit 306cf5aCopy full SHA for 306cf5a
deployments/helm-chart/templates/controller-hpa.yaml
@@ -1,4 +1,4 @@
1
-{{- if and .Values.controller.autoscaling.enabled (eq .Values.controller.kind "deployment") (semverCompare ">=1.23.0" .Capabilities.KubeVersion.Version) -}}
+{{- if and .Values.controller.autoscaling.enabled (eq .Values.controller.kind "deployment") (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
2
apiVersion: autoscaling/v2
3
kind: HorizontalPodAutoscaler
4
metadata:
0 commit comments