Skip to content

Commit

Permalink
feat(job): Set ttlSecondsAfterFinished to 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 7, 2023
1 parent 06c1540 commit f056c9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/util/cmd_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ func createJob(cmd *cobra.Command, conf *config.Global, actionName string) error
Labels: standardLabels,
},
Spec: batchv1.JobSpec{
ActiveDeadlineSeconds: ptr.To(int64(24 * time.Hour.Seconds())),
BackoffLimit: ptr.To(int32(0)),
ActiveDeadlineSeconds: ptr.To(int64(24 * time.Hour.Seconds())),
TTLSecondsAfterFinished: ptr.To(int32(time.Hour.Seconds())),
BackoffLimit: ptr.To(int32(0)),
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
Expand Down

0 comments on commit f056c9f

Please sign in to comment.