Remove excessive waiting in kubelet etcd loop

Listen to etcd longer, and wait a shorter time before reconnecting.
No longer an argument to the source.
This commit is contained in:
Clayton Coleman
2014-08-18 23:45:37 -04:00
parent 9bafb8c541
commit 34031dbc6a
4 changed files with 15 additions and 10 deletions

View File

@@ -138,7 +138,7 @@ func main() {
if len(etcdServerList) > 0 {
glog.Infof("Watching for etcd configs at %v", etcdServerList)
etcdClient = etcd.NewClient(etcdServerList)
kconfig.NewSourceEtcd(kconfig.EtcdKeyForHost(hostname), etcdClient, 30*time.Second, cfg.Channel("etcd"))
kconfig.NewSourceEtcd(kconfig.EtcdKeyForHost(hostname), etcdClient, cfg.Channel("etcd"))
}
// TODO: block until all sources have delivered at least one update to the channel, or break the sync loop