Skip to content

Commit

Permalink
Delete completed scheduled job after 24 hours (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
satr authored Jan 10, 2024
1 parent d0b1886 commit e37c8e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/radix-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: radix-operator
version: 1.28.3
appVersion: 1.48.3
version: 1.28.4
appVersion: 1.48.4
kubeVersion: ">=1.24.0"
description: Radix Operator
keywords:
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/batch/kubejob.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (s *syncer) buildJob(batchJob *radixv1.RadixBatchJob, jobComponent *radixv1
AutomountServiceAccountToken: serviceAccountSpec.AutomountServiceAccountToken(),
},
},
TTLSecondsAfterFinished: pointers.Ptr(int32(86400)), // delete completed job after 24 hours
},
}

Expand Down

0 comments on commit e37c8e3

Please sign in to comment.