HPA does not detect the correct semverCompare
Based on the logic described here, any system with k8s version >=1.23 should leverage apiVersion: autoscaling/v2
however we're seeing the following error with BB-1.57.1 on EKS-1.25
https://github.com/istio/istio/issues/39534
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v125
Suggestion:
Update
{{- if (semverCompare ">=1.23" .Capabilities.KubeVersion.GitVersion) }}
to
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" -}}
Edited by Hitesh Sharma