mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #25053 from yujuhong/rm_cahce_update
kubelet: do not force update the runtime cache
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user