ceph: correct log message for watching pools

The pools always claimed to be watching all namespaces
when in fact only a single namespace is watched for pools.

Signed-off-by: travisn <tnielsen@redhat.com>
This commit is contained in:
travisn authored and Travis Nielsen committed 2019-10-23 11:32:24 -06:00
1 parent a64b604b4a
commit 9777b7374b
1 file changed
+1 -1
+1 -1
View File
@@ -73,7 +73,7 @@ func (c *PoolController) StartWatch(namespace string, stopCh chan struct{}) erro
DeleteFunc: c.onDelete,
}
logger.Infof("start watching clusters in all namespaces")
logger.Infof("start watching pools in namespace %s", namespace)
watcher := opkit.NewWatcher(PoolResource, namespace, resourceHandlerFuncs, c.context.RookClientset.CephV1().RESTClient())
go watcher.Watch(&cephv1.CephBlockPool{}, stopCh)
return nil