From 2f8775e32015933dbf19220b34ca41cb3eee5cd8 Mon Sep 17 00:00:00 2001 From: Luke Addison Date: Mon, 8 Jan 2024 18:26:50 +0000 Subject: [PATCH] Pass Job object to retryModifyJob --- pkg/foghorn/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/foghorn/controller.go b/pkg/foghorn/controller.go index 9c90f1f24..d4a827abe 100644 --- a/pkg/foghorn/controller.go +++ b/pkg/foghorn/controller.go @@ -130,7 +130,7 @@ func (r *LighthouseJobReconciler) Reconcile(ctx context.Context, req ctrl.Reques } return nil } - if err := r.retryModifyJob(ctx, req.NamespacedName, jobCopy, f); err != nil { + if err := r.retryModifyJob(ctx, req.NamespacedName, &job, f); err != nil { r.logger.Errorf("Failed to update LighthouseJob status: %s", err) return ctrl.Result{}, err }