Fix the bug with the operator always listening to all namespaces
This commit is contained in:
parent
de2a028592
commit
794feee3e1
|
|
@ -110,7 +110,7 @@ func (c *Controller) clusterWatchFunc(options metav1.ListOptions) (watch.Interfa
|
||||||
options.Watch = true
|
options.Watch = true
|
||||||
r, err := c.KubeClient.CRDREST.
|
r, err := c.KubeClient.CRDREST.
|
||||||
Get().
|
Get().
|
||||||
Namespace("").
|
Namespace(c.opConfig.WatchedNamespace).
|
||||||
Resource(constants.CRDResource).
|
Resource(constants.CRDResource).
|
||||||
VersionedParams(&options, metav1.ParameterCodec).
|
VersionedParams(&options, metav1.ParameterCodec).
|
||||||
FieldsSelectorParam(nil).
|
FieldsSelectorParam(nil).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue