From a775742cbfb7d184ec7a33d1b9596c22ef50169f Mon Sep 17 00:00:00 2001 From: Varsha Date: Fri, 28 Jul 2023 13:35:23 -0400 Subject: [PATCH] fix: fix a broken method (#223) 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 --- pkg/reconciler/reconciler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/reconciler_test.go b/pkg/reconciler/reconciler_test.go index 323df098..9efffe68 100644 --- a/pkg/reconciler/reconciler_test.go +++ b/pkg/reconciler/reconciler_test.go @@ -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() {