fix: support suspend
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2022-02-10 20:55:33 +01:00
parent 693b75bd3c
commit 6e3c7b95f2
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,9 @@ metadata:
{{- include "renovate.labels" . | nindent 4 }} {{- include "renovate.labels" . | nindent 4 }}
spec: spec:
schedule: "{{ .Values.cronjob.schedule }}" schedule: "{{ .Values.cronjob.schedule }}"
{{- with .Values.cronjob.suspend }}
suspend: {{ . }}
{{- end }}
{{- with .Values.cronjob.concurrencyPolicy }} {{- with .Values.cronjob.concurrencyPolicy }}
concurrencyPolicy: {{ . }} concurrencyPolicy: {{ . }}
{{- end }} {{- end }}

View File

@ -38,6 +38,7 @@ securityContext: {}
cronjob: cronjob:
schedule: '@hourly' schedule: '@hourly'
suspend: false
concurrencyPolicy: Forbid concurrencyPolicy: Forbid
failedJobsHistoryLimit: 3 failedJobsHistoryLimit: 3
successfulJobsHistoryLimit: 1 successfulJobsHistoryLimit: 1