mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +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 {
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user