Add ttlSecondsAfterFinished field to cronjob
Adding ttlSecondsAfterFinished option to the chart for db clean up cronjob Change-Id: I431a9a3692fee36f77c6037031965e58c2c343c0
This commit is contained in:
parent
6609d561e1
commit
f105a17460
|
@ -28,6 +28,7 @@ metadata:
|
|||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
spec:
|
||||
ttlSecondsAfterFinished: {{ .Values.endpoints.postgresql.ttl_finished }}
|
||||
schedule: {{ .Values.endpoints.postgresql.cleanup_schedule | quote }}
|
||||
jobTemplate:
|
||||
spec:
|
||||
|
@ -68,4 +69,3 @@ spec:
|
|||
defaultMode: 0555
|
||||
...
|
||||
{{- end }}
|
||||
|
||||
|
|
|
@ -326,6 +326,7 @@ endpoints:
|
|||
postgresql:
|
||||
# frequency to run table purges
|
||||
cleanup_schedule: "0 1 * * *"
|
||||
ttl_finished: 86400
|
||||
# number of days to retain for the tasks table
|
||||
days_to_retain: "90"
|
||||
name: postgresql
|
||||
|
|
Loading…
Reference in New Issue