Skip to content

Commit

Permalink
fix: fix a broken method (#223)
Browse files Browse the repository at this point in the history
Merging #153 broke main since it was using an plder version
of controller-runtime. This commit fixes the same.

Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
  • Loading branch information
varshaprasad96 committed Jul 28, 2023
1 parent 2bd2a0a commit a775742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ var _ = Describe("Reconciler", func() {
controllerSetupCalled = true
u := &unstructured.Unstructured{}
u.SetGroupVersionKind(additionalGVK)
return c.Watch(&source.Kind{Type: u}, &sdkhandler.InstrumentedEnqueueRequestForObject{})
return c.Watch(source.Kind(mgr.GetCache(), u), &sdkhandler.InstrumentedEnqueueRequestForObject{})
}

It("Registering builder setup function for reconciler works", func() {
Expand Down

0 comments on commit a775742

Please sign in to comment.