Skip to content

Commit e207d38

Browse files
author
slavogiez
committed
fix(hpa) properly detect hpa capabilities
1 parent a29bf3f commit e207d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/kong/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,9 +1398,9 @@ extensions/v1beta1
13981398
{{- end -}}
13991399
14001400
{{- define "kong.autoscalingVersion" -}}
1401-
{{- if (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
1401+
{{- if (.Capabilities.APIVersions.Has "autoscaling/v2/HorizontalPodAutoscaler") -}}
14021402
autoscaling/v2
1403-
{{- else if (.Capabilities.APIVersions.Has "autoscaling/v2beta2") -}}
1403+
{{- else if (.Capabilities.APIVersions.Has "autoscaling/v2beta2/HorizontalPodAutoscaler") -}}
14041404
autoscaling/v2beta2
14051405
{{- else -}}
14061406
autoscaling/v1

0 commit comments

Comments
 (0)