Skip to content

Commit

Permalink
Use controller.NewContext (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor authored Aug 25, 2021
1 parent 4f6f307 commit de1b52b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/reconciler/source/duck/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ func NewController(crd string, gvr schema.GroupVersionResource, gvk schema.Group
gvr: gvr,
crdName: crd,
}
impl := controller.NewImpl(r, logger, ReconcilerName)
impl := controller.NewContext(ctx, r, controller.ControllerOptions{
Logger: logger, WorkQueueName: ReconcilerName,
})

sourceInformer.AddEventHandler(controller.HandleAll(impl.Enqueue))

Expand Down

0 comments on commit de1b52b

Please sign in to comment.