Commit 4f19bcb3 authored by zte-20170208's avatar zte-20170208

ResyncPeriod Comment

parent bd17091e
......@@ -93,6 +93,9 @@ controller, and serviceaccounts controller.`,
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 {
return func() time.Duration {
factor := rand.Float64() + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment