Commit 2c678f1e authored by Robert Bailey's avatar Robert Bailey

Merge pull request #25053 from yujuhong/rm_cahce_update

kubelet: do not force update the runtime cache
parents 222eb31f 43fc67a5
...@@ -2501,12 +2501,6 @@ func (kl *Kubelet) syncLoopIteration(configCh <-chan kubetypes.PodUpdate, handle ...@@ -2501,12 +2501,6 @@ func (kl *Kubelet) syncLoopIteration(configCh <-chan kubetypes.PodUpdate, handle
break break
} }
glog.V(2).Infof("SyncLoop (PLEG): %q, event: %#v", format.Pod(pod), e) 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}) handler.HandlePodSyncs([]*api.Pod{pod})
case <-syncCh: case <-syncCh:
// Sync pods waiting for sync // Sync pods waiting for sync
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment