Skip to content

Commit 405b21a

Browse files
committed
Add ttlSecondsAfterFinished in cronjobs
1 parent 49d677b commit 405b21a

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

osm-seed/templates/db/db-backup-job.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
successfulJobsHistoryLimit: 2
1414
failedJobsHistoryLimit: 2
1515
startingDeadlineSeconds: 100
16+
ttlSecondsAfterFinished: 300
1617
concurrencyPolicy: Forbid
1718
jobTemplate:
1819
spec:

osm-seed/templates/jobs/full-history-job.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
spec:
1212
schedule: {{ quote .Values.fullHistory.schedule }}
1313
startingDeadlineSeconds: 100
14+
ttlSecondsAfterFinished: 300
1415
successfulJobsHistoryLimit: 2
1516
failedJobsHistoryLimit: 2
1617
concurrencyPolicy: Forbid

osm-seed/templates/jobs/osm-simple-metrics-job.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ spec:
1212
schedule: {{ quote .Values.osmSimpleMetrics.schedule }}
1313
startingDeadlineSeconds: 100
1414
successfulJobsHistoryLimit: 2
15+
ttlSecondsAfterFinished: 300
1516
failedJobsHistoryLimit: 2
1617
concurrencyPolicy: Forbid
1718
jobTemplate:

osm-seed/templates/jobs/planet-dump-job.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ spec:
1212
schedule: {{ quote .Values.planetDump.schedule }}
1313
startingDeadlineSeconds: 100
1414
successfulJobsHistoryLimit: 2
15+
ttlSecondsAfterFinished: 300
1516
failedJobsHistoryLimit: 2
1617
concurrencyPolicy: Forbid
1718
jobTemplate:

osm-seed/templates/jobs/replication-monitoring-job.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
startingDeadlineSeconds: 100
1414
successfulJobsHistoryLimit: 2
1515
failedJobsHistoryLimit: 2
16+
ttlSecondsAfterFinished: 60
1617
concurrencyPolicy: Forbid
1718
jobTemplate:
1819
spec:

0 commit comments

Comments
 (0)