mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Log an error when update channel is closed.
This commit is contained in:
parent
3efff6d4e8
commit
3932dfd8bb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user