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