fixup! fixup! fixup! fixup! fixup! fixup! fixup! Ensure that jobs run with the controller service account if no service account is specified.

This commit is contained in:
2024-12-20 11:34:18 +00:00
parent 57e7576fe8
commit 70595cd7e0
4 changed files with 22 additions and 6 deletions
+1
View File
@@ -62,6 +62,7 @@ func CreateJob[T any](params JobParams, setupFunc func(T) []string) *batchv1.Job
Annotations: params.Annotations,
},
Spec: batchv1.JobSpec{
TTLSecondsAfterFinished: pointer.Int32(300),
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{