From 6e3c7b95f28b6170f8782b48f1db2d8b04aab783 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 10 Feb 2022 20:55:33 +0100 Subject: [PATCH] fix: support suspend --- templates/cronjob.yaml | 3 +++ values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/templates/cronjob.yaml b/templates/cronjob.yaml index a9740f3..e30a589 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -10,6 +10,9 @@ metadata: {{- include "renovate.labels" . | nindent 4 }} spec: schedule: "{{ .Values.cronjob.schedule }}" + {{- with .Values.cronjob.suspend }} + suspend: {{ . }} + {{- end }} {{- with .Values.cronjob.concurrencyPolicy }} concurrencyPolicy: {{ . }} {{- end }} diff --git a/values.yaml b/values.yaml index ec4b61a..40e0df0 100644 --- a/values.yaml +++ b/values.yaml @@ -38,6 +38,7 @@ securityContext: {} cronjob: schedule: '@hourly' + suspend: false concurrencyPolicy: Forbid failedJobsHistoryLimit: 3 successfulJobsHistoryLimit: 1