Commit a1b402e8 authored by julienmancuso's avatar julienmancuso Committed by GitHub
Browse files

feat: add TTL to image builder job (#75)


Co-authored-by: default avatarMaksim Khadkevich <mkhadkevich@nvidia.com>
parent 8cd8941c
......@@ -1906,6 +1906,7 @@ func (r *DynamoNimRequestReconciler) generateImageBuilderJob(ctx context.Context
Annotations: kubeAnnotations,
},
Spec: batchv1.JobSpec{
TTLSecondsAfterFinished: ptr.To(int32(60 * 60 * 24)),
Completions: ptr.To(int32(1)),
Parallelism: ptr.To(int32(1)),
PodFailurePolicy: &batchv1.PodFailurePolicy{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment