mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	Move periodic backoff gc to federation utils
This commit is contained in:
		| @@ -228,17 +228,7 @@ func (fdc *DeploymentController) Run(workers int, stopCh <-chan struct{}) { | ||||
| 		go wait.Until(fdc.worker, time.Second, stopCh) | ||||
| 	} | ||||
|  | ||||
| 	go func() { | ||||
| 		for { | ||||
| 			// Perform backof registry cleanup from time to time. | ||||
| 			select { | ||||
| 			case <-time.After(time.Minute): | ||||
| 				fdc.deploymentBackoff.GC() | ||||
| 			case <-stopCh: | ||||
| 				return | ||||
| 			} | ||||
| 		} | ||||
| 	}() | ||||
| 	fedutil.StartBackoffGC(fdc.deploymentBackoff, stopCh) | ||||
|  | ||||
| 	<-stopCh | ||||
| 	glog.Infof("Shutting down DeploymentController") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user