Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit cbf49d9

Browse files
committed
Fix backOffLimit Type
Silly me, of course it has to be a int32 pointer 🤦‍♂️
1 parent ec40e09 commit cbf49d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator/controllers/execution/scan_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ func (r *ScanReconciler) startParser(scan *executionv1.Scan) error {
315315
}
316316
labels["experimental.securecodebox.io/job-type"] = "parser"
317317
automountServiceAccountToken := true
318+
var backOffLimit int32 = 3
318319
job = &batch.Job{
319320
ObjectMeta: metav1.ObjectMeta{
320321
Annotations: make(map[string]string),
@@ -323,7 +324,7 @@ func (r *ScanReconciler) startParser(scan *executionv1.Scan) error {
323324
Labels: labels,
324325
},
325326
Spec: batch.JobSpec{
326-
BackoffLimit: 3,
327+
BackoffLimit: &backOffLimit,
327328
Template: corev1.PodTemplateSpec{
328329
Spec: corev1.PodSpec{
329330
RestartPolicy: corev1.RestartPolicyNever,

0 commit comments

Comments
 (0)