kubelet: do not force update the runtime cache

Pod workers don't rely on the old runtime cache to sync pods anymore. There is
no need to force update the cache on every container event.
This commit is contained in:
Yu-Ju Hong 2016-05-02 15:10:00 -07:00
parent 879c1807c8
commit 43fc67a5f6

View File

@ -2598,12 +2598,6 @@ func (kl *Kubelet) syncLoopIteration(configCh <-chan kubetypes.PodUpdate, handle
break
}
glog.V(2).Infof("SyncLoop (PLEG): %q, event: %#v", format.Pod(pod), e)
// Force the container runtime cache to update.
if err := kl.runtimeCache.ForceUpdateIfOlder(kl.clock.Now()); err != nil {
glog.Errorf("SyncLoop: unable to update runtime cache")
// TODO (yujuhong): should we delay the sync until container
// runtime can be updated?
}
handler.HandlePodSyncs([]*api.Pod{pod})
case <-syncCh:
// Sync pods waiting for sync