Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/temporal/templates/server-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ metadata:
{{- end }}
spec:
backoffLimit: {{ $.Values.schema.backoffLimit }}
{{- if and $.Values.schema.garbageCollection $.Values.schema.garbageCollection.enabled }}
ttlSecondsAfterFinished: {{ $.Values.schema.garbageCollection.ttlSeconds | default 86400 }}
{{- else if not $.Values.schema.garbageCollection }}
ttlSecondsAfterFinished: 86400
{{- end }}
template:
metadata:
name: {{ include "temporal.componentname" (list $ (printf "schema-%d" .Release.Revision | replace "." "-")) }}
Expand Down
5 changes: 5 additions & 0 deletions charts/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ web:
minReadySeconds: 0
podDisruptionBudget: {}
schema:
garbageCollection:
# Enable or disable the job garbage collection
enabled: true
# If enabled, time before the job is removed in seconds. Default 86400
ttlSeconds: 86400
backoffLimit: 100
jobAnnotations: {}
podAnnotations: {}
Expand Down