Skip to content

Commit 440fd2d

Browse files
slavogiezczeslavo
andauthored
fix(hpa) properly detect hpa capabilities, release 2.16.4 (#744)
Ensure that not only `autoscaling/v2` is supported, but also `HorizontalPodAutoscaler` itself. Co-authored-by: Grzegorz Burzyński <[email protected]>
1 parent a29bf3f commit 440fd2d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

charts/kong/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Changelog
22

3+
## 2.16.4
4+
5+
### Fixed
6+
7+
* HorizontalPodAutoscaler's API version is detected properly.
8+
[#744](https://github.com/Kong/charts/pull/744)
9+
310
## 2.16.3
411

12+
### Fixed
13+
514
* Fix template issue preventing custom dblessconfig volume from being mounted.
615
[#741](https://github.com/Kong/charts/pull/741)
716

charts/kong/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ maintainers:
1111
name: kong
1212
sources:
1313
- https://github.com/Kong/charts/tree/main/charts/kong
14-
version: 2.16.3
14+
version: 2.16.4
1515
appVersion: "3.1"
1616
dependencies:
1717
- name: postgresql

charts/kong/templates/_helpers.tpl

+2-2
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)