From c00ea1957da51004aff122288b2e7ba6951ad99c Mon Sep 17 00:00:00 2001 From: Stefan <64960813+Strigix@users.noreply.github.com> Date: Fri, 3 May 2024 13:28:48 +0200 Subject: [PATCH] Fix HPA API version. (#348) * fix HPA version and typo. * Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ helm/starboard-exporter/templates/customMetricsHpa.yaml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85138dc7..381fde28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/helm/starboard-exporter/templates/customMetricsHpa.yaml b/helm/starboard-exporter/templates/customMetricsHpa.yaml index e2e28e4b..6ee41cb8 100644 --- a/helm/starboard-exporter/templates/customMetricsHpa.yaml +++ b/helm/starboard-exporter/templates/customMetricsHpa.yaml @@ -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 }}