From 794feee3e1883e56264c6d4b5c4e6021c75038ca Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Thu, 8 Feb 2018 13:49:44 +0100 Subject: [PATCH] Fix the bug with the operator always listening to all namespaces --- pkg/controller/postgresql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/postgresql.go b/pkg/controller/postgresql.go index f83779a21..25b4617a8 100644 --- a/pkg/controller/postgresql.go +++ b/pkg/controller/postgresql.go @@ -110,7 +110,7 @@ func (c *Controller) clusterWatchFunc(options metav1.ListOptions) (watch.Interfa options.Watch = true r, err := c.KubeClient.CRDREST. Get(). - Namespace(""). + Namespace(c.opConfig.WatchedNamespace). Resource(constants.CRDResource). VersionedParams(&options, metav1.ParameterCodec). FieldsSelectorParam(nil).