k8s: prevent failing timers from piling up (#46)

This commit is contained in:
David Dollar 2019-12-10 16:29:21 -05:00 committed by GitHub
parent 50ea56855f
commit dbeb8e4163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,10 +6,12 @@ metadata:
name: timer-{{.Timer.Name}}
spec:
schedule: "{{.Timer.Schedule}}"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
backoffLimit: 0
# ttlSecondsAfterFinished: 60
template:
metadata: