Skip to content

Commit

Permalink
Merge pull request #1591 from dippynark/use-semantic-deep-equal
Browse files Browse the repository at this point in the history
fix: Retry foghorn LighthouseJob update using original variable instead of DeepCopy variable
  • Loading branch information
jenkins-x-bot committed Jan 9, 2024
2 parents 867b0b5 + c654951 commit f7cb024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/foghorn/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f7cb024

Please sign in to comment.