Skip to content

Commit 6e6077c

Browse files
authored
feat: Add ttlSecondsAfterFinished configuration to chart (#788)
It should allow Kubernetes to automatically clean up jobs after a specified period, defaults to 3 days.
1 parent f146fee commit 6e6077c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

charts/cloudquery/templates/job.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- include "cloudquery.annotations" . }}
99
spec:
1010
backoffLimit: 0
11+
ttlSecondsAfterFinished: {{ .Values.job.ttlSecondsAfterFinished | default 259200 }}
1112
template:
1213
metadata:
1314
labels:

charts/cloudquery/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ cronJobFailedJobsLimit: 1
8282
job:
8383
# -- Create a job that runs once upon installation.
8484
enabled: false
85+
# -- (int) How long to retain the job after it has finished. Default is 259200 seconds (3 days).
86+
ttlSecondsAfterFinished: 259200
8587

8688
# -- CloudQuery cloudquery.yml content
8789
# @default -- The chart will use a default CloudQuery aws config

0 commit comments

Comments
 (0)