Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix(cronjob): add api version check
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsozolins authored and aeciopires committed Jul 26, 2022
1 parent 3536f19 commit 73a3846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/cronjob-hanodes-autoclean.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.zabbixserver.ha_nodes_autoclean.enabled }}
{{- if .Capabilities.APIVersions.Has "batch/v1/CronJob" }}
apiVersion: batch/v1
{{- else }}
apiVersion: batch/v1beta1
{{- end }}
kind: CronJob
metadata:
name: {{ template "zabbix.fullname" . }}-nodesclean
Expand Down

0 comments on commit 73a3846

Please sign in to comment.