Skip to content

Commit

Permalink
use correct event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
puertomontt committed May 7, 2024
1 parent 20c6f04 commit fad7bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/events/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (w *watcher) Watch(ctx context.Context, eventHandler EventHandler, predicat
}

// create a source for the resource type
src := source.Kind(w.mgr.GetCache(), w.resource, eventHandler, predicates...)
src := source.Kind(w.mgr.GetCache(), w.resource, reconciler.events, predicates...)

// send watch events to the Cache
if err := ctl.Watch(src); err != nil {
Expand Down

0 comments on commit fad7bec

Please sign in to comment.