From a1cab01323df9c7d101f97281674ea36d65b74e2 Mon Sep 17 00:00:00 2001 From: Diogo Guerra Date: Thu, 31 Aug 2023 18:36:05 +0200 Subject: [PATCH] Fix autoscaling/v2beta2 deprecation Starting from kubernetes v1.26 autoscaling/v2beta2 is deprecated https://kubernetes.io/docs/reference/using-api/deprecation-guide/ Closes: https://github.com/fluent/helm-charts/issues/416 Signed-off-by: Diogo Guerra --- charts/fluentd/Chart.yaml | 2 +- charts/fluentd/templates/hpa.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/fluentd/Chart.yaml b/charts/fluentd/Chart.yaml index 8099a18e..28c1eca5 100644 --- a/charts/fluentd/Chart.yaml +++ b/charts/fluentd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: fluentd description: A Helm chart for Kubernetes # type: application -version: 0.4.4 +version: 0.4.5 appVersion: v1.16.2 icon: https://www.fluentd.org/images/miscellany/fluentd-logo_2x.png home: https://www.fluentd.org/ diff --git a/charts/fluentd/templates/hpa.yaml b/charts/fluentd/templates/hpa.yaml index b2e82822..187f9e0b 100644 --- a/charts/fluentd/templates/hpa.yaml +++ b/charts/fluentd/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if and ( eq .Values.kind "Deployment" ) .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "fluentd.fullname" . }} @@ -36,4 +36,4 @@ spec: {{- if .Values.autoscaling.customRules -}} {{- toYaml .Values.autoscaling.customRules | nindent 4}} {{- end -}} -{{- end }} \ No newline at end of file +{{- end }}