mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-08 14:23:30 +00:00
Log an error when update channel is closed.
This commit is contained in:
@@ -1634,6 +1634,7 @@ func (kl *Kubelet) syncLoop(updates <-chan PodUpdate, handler SyncHandler) {
|
|||||||
select {
|
select {
|
||||||
case u, ok := <-updates:
|
case u, ok := <-updates:
|
||||||
if !ok {
|
if !ok {
|
||||||
|
glog.Errorf("Update channel is closed. Exiting the sync loop.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
kl.podManager.UpdatePods(u, podSyncTypes)
|
kl.podManager.UpdatePods(u, podSyncTypes)
|
||||||
|
|||||||
Reference in New Issue
Block a user