Skip to content

Commit

Permalink
Fix autoscaling/v2beta2 deprecation
Browse files Browse the repository at this point in the history
Starting from kubernetes v1.26 autoscaling/v2beta2 is deprecated
https://kubernetes.io/docs/reference/using-api/deprecation-guide/

Closes: #416
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
  • Loading branch information
Diogo Guerra committed Aug 31, 2023
1 parent c087bcd commit f200198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/fluentd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: fluentd
description: A Helm chart for Kubernetes
# type: application
version: 0.4.3
version: 0.4.4
appVersion: v1.15.2
icon: https://www.fluentd.org/images/miscellany/fluentd-logo_2x.png
home: https://www.fluentd.org/
Expand Down
4 changes: 2 additions & 2 deletions charts/fluentd/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -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" . }}
Expand Down Expand Up @@ -36,4 +36,4 @@ spec:
{{- if .Values.autoscaling.customRules -}}
{{- toYaml .Values.autoscaling.customRules | nindent 4}}
{{- end -}}
{{- end }}
{{- end }}

0 comments on commit f200198

Please sign in to comment.