diff --git a/pkg/manager/namespace_test.go b/pkg/manager/namespace_test.go index 3fb644e6..2949a386 100644 --- a/pkg/manager/namespace_test.go +++ b/pkg/manager/namespace_test.go @@ -91,6 +91,9 @@ var _ = Describe("ConfigureWatchNamespaces", func() { By("configuring WATCH_NAMESPACE with empty string") Expect(os.Setenv(WatchNamespaceEnvVar, "")).To(Succeed()) + By("configuring WATCH_NAMESPACE with the namespaces of the watched pods") + ConfigureWatchNamespaces(&opts, log) + By("creating the manager") mgr, err := manager.New(cfg, opts) Expect(err).ToNot(HaveOccurred())