UNCLASSIFIED - NO CUI

Skip to content

Update HPA logic for Istio

Hitesh Sharma requested to merge hsharma-hpa-istio-fix into master

Package Merge Request

Package Changes

According to the issue here, AWS does a poorly job with versioning scheme, which impacts users running AWS-EKS-1.25+. Therefore, {{- if (semverCompare ">=1.23" .Capabilities.KubeVersion.GitVersion) }} does not get read and HPA for Istio is being skipped.

image

Solution:

Changed

{{- if (semverCompare ">=1.23" .Capabilities.KubeVersion.GitVersion) }}

to:

{{- if .Capabilities.APIVersions.Has "autoscaling/v2" -}}

Package MR

(Link to Package MR here)

For Issue

Closes (link to issue here)

Edited by Hitesh Sharma

Merge request reports