Factor out etcdWatcher to a separate file

This commit is contained in:
Wojciech Tyczynski
2015-07-27 09:54:07 +02:00
parent dde72229dc
commit db5f6eae6c
4 changed files with 18 additions and 22 deletions

View File

@@ -163,7 +163,7 @@ resource type. However, this watch can potentially expire at any time and
reconnecting can return "too old resource version". In that case relisting is
necessary. In such case, to avoid LIST requests coming from all watchers at
the same time, we can introduce an additional etcd event type:
[EtcdResync](../../pkg/tools/etcd_helper_watch.go#L36)
[EtcdResync](../../pkg/tools/etcd_watcher.go#L36)
Whenever reslisting will be done to refresh the internal watch to etcd,
EtcdResync event will be send to all the watchers. It will contain the