Skip to content

Commit

Permalink
Fix HPA API version. (#348)
Browse files Browse the repository at this point in the history
* fix HPA version and typo.

* Update CHANGELOG.md
  • Loading branch information
Strigix authored May 3, 2024
1 parent 3248f79 commit c00ea19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Switched API version from the `HorizontalPodAutoscaler` from `autoscaling/v2beta1` to `autoscaling/v1`.

## [0.7.8] - 2024-01-16

### Changed
Expand Down
4 changes: 2 additions & 2 deletions helm/starboard-exporter/templates/customMetricsHpa.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{- if .Capabilities.APIVersions.Has "autoscaling/v2beta1" -}}
{{- if .Values.customMetricsHPA.enabled -}}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: staboard-exporter-custom-metrics-hpa
name: starboard-exporter-custom-metrics-hpa
namespace: {{ include "resource.default.namespace" . }}
labels:
{{- include "labels.common" . | nindent 4 }}
Expand Down

0 comments on commit c00ea19

Please sign in to comment.