Skip to content

Commit

Permalink
fix api change
Browse files Browse the repository at this point in the history
Signed-off-by: xliuqq <xlzq1992@gmail.com>
  • Loading branch information
xliuqq committed Jul 2, 2024
1 parent 34edd35 commit b99d1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ctrl/watch/dataopjob_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func SetupDataOpJobWatcherWithReconciler(mgr ctrl.Manager, options controller.Op
}

jobEventHandler := &opJobEventHandler{}
err = c.Watch(&source.Kind{Type: r.ManagedResource()}, &handler.EnqueueRequestForObject{}, predicate.Funcs{
err = c.Watch(source.Kind(mgr.GetCache(), r.ManagedResource()), &handler.EnqueueRequestForObject{}, predicate.Funcs{
CreateFunc: jobEventHandler.onCreateFunc(r),
UpdateFunc: jobEventHandler.onUpdateFunc(r),
DeleteFunc: jobEventHandler.onDeleteFunc(r),
Expand Down

0 comments on commit b99d1ef

Please sign in to comment.