Skip to content

Commit

Permalink
Use the cache from mgr for Kind source
Browse files Browse the repository at this point in the history
  • Loading branch information
maqiuyujoyce committed Dec 27, 2023
1 parent 1d8a442 commit 4b5ef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/registration/registration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func Add(mgr manager.Manager, p *tfschema.Provider, smLoader *servicemappingload
if err != nil {
return err
}
return c.Watch(source.Kind(nil, &apiextensions.CustomResourceDefinition{}), &handler.EnqueueRequestForObject{}, ManagedByKCCPredicate{})
return c.Watch(source.Kind(mgr.GetCache(), &apiextensions.CustomResourceDefinition{}), &handler.EnqueueRequestForObject{}, ManagedByKCCPredicate{})
}

var _ reconcile.Reconciler = &ReconcileRegistration{}
Expand Down

0 comments on commit 4b5ef7e

Please sign in to comment.