mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	prevent blocking wait in cert reloading
This commit is contained in:
		@@ -217,7 +217,7 @@ func (c *ConfigMapCAController) Run(workers int, stopCh <-chan struct{}) {
 | 
			
		||||
	go wait.Until(c.runWorker, time.Second, stopCh)
 | 
			
		||||
 | 
			
		||||
	// start timer that rechecks every minute, just in case.  this also serves to prime the controller quickly.
 | 
			
		||||
	_ = wait.PollImmediateUntil(FileRefreshDuration, func() (bool, error) {
 | 
			
		||||
	go wait.PollImmediateUntil(FileRefreshDuration, func() (bool, error) {
 | 
			
		||||
		c.queue.Add(workItemKey)
 | 
			
		||||
		return false, nil
 | 
			
		||||
	}, stopCh)
 | 
			
		||||
 
 | 
			
		||||
@@ -170,7 +170,7 @@ func (c *DynamicFileCAContent) Run(workers int, stopCh <-chan struct{}) {
 | 
			
		||||
	go wait.Until(c.runWorker, time.Second, stopCh)
 | 
			
		||||
 | 
			
		||||
	// start timer that rechecks every minute, just in case.  this also serves to prime the controller quickly.
 | 
			
		||||
	_ = wait.PollImmediateUntil(FileRefreshDuration, func() (bool, error) {
 | 
			
		||||
	go wait.PollImmediateUntil(FileRefreshDuration, func() (bool, error) {
 | 
			
		||||
		c.queue.Add(workItemKey)
 | 
			
		||||
		return false, nil
 | 
			
		||||
	}, stopCh)
 | 
			
		||||
 
 | 
			
		||||
@@ -133,7 +133,7 @@ func (c *DynamicFileServingContent) Run(workers int, stopCh <-chan struct{}) {
 | 
			
		||||
	go wait.Until(c.runWorker, time.Second, stopCh)
 | 
			
		||||
 | 
			
		||||
	// start timer that rechecks every minute, just in case.  this also serves to prime the controller quickly.
 | 
			
		||||
	_ = wait.PollImmediateUntil(FileRefreshDuration, func() (bool, error) {
 | 
			
		||||
	go wait.PollImmediateUntil(FileRefreshDuration, func() (bool, error) {
 | 
			
		||||
		c.queue.Add(workItemKey)
 | 
			
		||||
		return false, nil
 | 
			
		||||
	}, stopCh)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user