From 25399930a74dd115376b2dc1adc92d8a59c2846a Mon Sep 17 00:00:00 2001 From: Daniel Polito Date: Mon, 29 Jan 2024 20:34:58 -0300 Subject: [PATCH] Upgrading deprecated api versions --- charts/generic/Chart.yaml | 2 +- charts/generic/templates/cronjobs.yaml | 2 +- charts/generic/templates/hpa.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/generic/Chart.yaml b/charts/generic/Chart.yaml index b7e54ed..5d8fb9d 100644 --- a/charts/generic/Chart.yaml +++ b/charts/generic/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: generic description: Generic Chart -version: 1.6.2 +version: 1.6.3 diff --git a/charts/generic/templates/cronjobs.yaml b/charts/generic/templates/cronjobs.yaml index db6d14f..d7047f4 100644 --- a/charts/generic/templates/cronjobs.yaml +++ b/charts/generic/templates/cronjobs.yaml @@ -2,7 +2,7 @@ {{- $fullName := include "generic.fullname" . -}} {{- range $cronjobName, $cronjob := .Values.cronjobs }} {{- if or (not (hasKey $cronjob "enabled")) ($cronjob.enabled) }} -apiVersion: batch/v1beta1 +apiVersion: batch/v1 kind: CronJob metadata: {{- if $cronjob.fullName }} diff --git a/charts/generic/templates/hpa.yaml b/charts/generic/templates/hpa.yaml index 3248532..de2cc0e 100644 --- a/charts/generic/templates/hpa.yaml +++ b/charts/generic/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "generic.fullname" . }}