Skip to content

Commit

Permalink
fix(hpa) properly detect hpa capabilities, release 2.16.4 (#744)
Browse files Browse the repository at this point in the history
Ensure that not only `autoscaling/v2` is supported, but also `HorizontalPodAutoscaler` itself.

Co-authored-by: Grzegorz Burzyński <[email protected]>
  • Loading branch information
slavogiez and czeslavo authored Feb 14, 2023
1 parent a29bf3f commit 440fd2d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Changelog

## 2.16.4

### Fixed

* HorizontalPodAutoscaler's API version is detected properly.
[#744](https://github.com/Kong/charts/pull/744)

## 2.16.3

### Fixed

* Fix template issue preventing custom dblessconfig volume from being mounted.
[#741](https://github.com/Kong/charts/pull/741)

Expand Down
2 changes: 1 addition & 1 deletion charts/kong/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainers:
name: kong
sources:
- https://github.com/Kong/charts/tree/main/charts/kong
version: 2.16.3
version: 2.16.4
appVersion: "3.1"
dependencies:
- name: postgresql
Expand Down
4 changes: 2 additions & 2 deletions charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1398,9 +1398,9 @@ extensions/v1beta1
{{- end -}}
{{- define "kong.autoscalingVersion" -}}
{{- if (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
{{- if (.Capabilities.APIVersions.Has "autoscaling/v2/HorizontalPodAutoscaler") -}}
autoscaling/v2
{{- else if (.Capabilities.APIVersions.Has "autoscaling/v2beta2") -}}
{{- else if (.Capabilities.APIVersions.Has "autoscaling/v2beta2/HorizontalPodAutoscaler") -}}
autoscaling/v2beta2
{{- else -}}
autoscaling/v1
Expand Down

0 comments on commit 440fd2d

Please sign in to comment.