Fix the bug with the operator always listening to all namespaces

This commit is contained in:
Sergey Dudoladov 2018-02-08 13:49:44 +01:00
parent de2a028592
commit 794feee3e1
1 changed files with 1 additions and 1 deletions

View File

@ -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).