Skip to content

Commit

Permalink
chore: Update default API version for CronJob (#363)
Browse files Browse the repository at this point in the history
CronJob has reached GA in Kubernetes 1.21.
Announcement: https://kubernetes.io/blog/2021/04/09/kubernetes-release-1.21-cronjob-ga/

Fixes #362
  • Loading branch information
sydorovdmytro authored Jul 6, 2023
1 parent 1682e13 commit 619e4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helm/reflector/templates/cron.yaml
Original file line number Diff line number Diff line change
@@ -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" . }}
Expand Down Expand Up @@ -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 }}

0 comments on commit 619e4bd

Please sign in to comment.