Skip to content

Commit

Permalink
fix: client not init in EnqueueServiceByPod (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeichengWang1 committed Aug 28, 2023
1 parent 54c8908 commit 571abdc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ func AddToMgr(mgr manager.Manager, adapter ReconcileAdapter) error {
// Watch for changes to EmployeeResources
err = c.Watch(&source.Kind{
Type: &v1.Pod{}},
&EnqueueServiceByPod{},
&EnqueueServiceByPod{
c: mgr.GetClient(),
},
employeePredicates)
if err != nil {
return err
Expand Down

0 comments on commit 571abdc

Please sign in to comment.