mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	ResyncPeriod Comment
This commit is contained in:
		@@ -93,6 +93,9 @@ controller, and serviceaccounts controller.`,
 | 
				
			|||||||
	return cmd
 | 
						return cmd
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ResyncPeriod returns a function which generates a duration each time it is
 | 
				
			||||||
 | 
					// invoked; this is so that multiple controllers don't get into lock-step and all
 | 
				
			||||||
 | 
					// hammer the apiserver with list requests simultaneously.
 | 
				
			||||||
func ResyncPeriod(s *options.CMServer) func() time.Duration {
 | 
					func ResyncPeriod(s *options.CMServer) func() time.Duration {
 | 
				
			||||||
	return func() time.Duration {
 | 
						return func() time.Duration {
 | 
				
			||||||
		factor := rand.Float64() + 1
 | 
							factor := rand.Float64() + 1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user