From 619e4bdadfff2c0a32c05e0e4b066ef863985858 Mon Sep 17 00:00:00 2001 From: Dmytro Sydorov Date: Thu, 6 Jul 2023 10:04:39 +0200 Subject: [PATCH] chore: Update default API version for CronJob (#363) CronJob has reached GA in Kubernetes 1.21. Announcement: https://kubernetes.io/blog/2021/04/09/kubernetes-release-1.21-cronjob-ga/ Fixes #362 --- src/helm/reflector/templates/cron.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helm/reflector/templates/cron.yaml b/src/helm/reflector/templates/cron.yaml index 27bc6b1..660a48d 100644 --- a/src/helm/reflector/templates/cron.yaml +++ b/src/helm/reflector/templates/cron.yaml @@ -1,6 +1,6 @@ {{- if .Values.cron.enabled }} --- -apiVersion: {{ .Values.cron.apiVersion | default "batch/v1beta1" }} +apiVersion: {{ .Values.cron.apiVersion | default "batch/v1" }} kind: CronJob metadata: name: {{ include "reflector.fullname" . }} @@ -69,5 +69,5 @@ spec: - name: ES_Reflector__Watcher__Timeout value: {{ .Values.configuration.watcher.timeout | quote }} resources: - {{- toYaml .Values.resources | nindent 16 }} + {{- toYaml .Values.resources | nindent 16 }} {{- end }}