Log an error when update channel is closed.

This commit is contained in:
Tobi Knaup 2015-04-10 17:30:04 -07:00
parent 3efff6d4e8
commit 3932dfd8bb

View File

@ -1634,6 +1634,7 @@ func (kl *Kubelet) syncLoop(updates <-chan PodUpdate, handler SyncHandler) {
select {
case u, ok := <-updates:
if !ok {
glog.Errorf("Update channel is closed. Exiting the sync loop.")
return
}
kl.podManager.UpdatePods(u, podSyncTypes)