mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Always run the podGC controller.
This commit is contained in:
		@@ -271,11 +271,9 @@ func StartControllers(s *options.CMServer, kubeconfig *restclient.Config, rootCl
 | 
				
			|||||||
	).Run(int(s.ConcurrentRCSyncs), wait.NeverStop)
 | 
						).Run(int(s.ConcurrentRCSyncs), wait.NeverStop)
 | 
				
			||||||
	time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter))
 | 
						time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if s.TerminatedPodGCThreshold > 0 {
 | 
						go podgc.NewPodGC(client("pod-garbage-collector"), sharedInformers.Pods().Informer(),
 | 
				
			||||||
		go podgc.NewPodGC(client("pod-garbage-collector"), sharedInformers.Pods().Informer(),
 | 
							int(s.TerminatedPodGCThreshold)).Run(wait.NeverStop)
 | 
				
			||||||
			int(s.TerminatedPodGCThreshold)).Run(wait.NeverStop)
 | 
						time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter))
 | 
				
			||||||
		time.Sleep(wait.Jitter(s.ControllerStartInterval.Duration, ControllerStartJitter))
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cloud, err := cloudprovider.InitCloudProvider(s.CloudProvider, s.CloudConfigFile)
 | 
						cloud, err := cloudprovider.InitCloudProvider(s.CloudProvider, s.CloudConfigFile)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user