Merge pull request #130465 from Monokaix/resync

correct ResyncPeriod comments
This commit is contained in:
Kubernetes Prow Robot
2025-02-27 05:28:31 -08:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -169,8 +169,7 @@ controller, and serviceaccounts controller.`,
}
// 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.
// invoked; this is because that multiple controllers don't get into lock-step.
func ResyncPeriod(c *config.CompletedConfig) func() time.Duration {
return func() time.Duration {
factor := rand.Float64() + 1

View File

@@ -499,8 +499,7 @@ func CreateControllerContext(s *cloudcontrollerconfig.CompletedConfig, clientBui
}
// 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.
// invoked; this is because that multiple controllers don't get into lock-step.
func ResyncPeriod(c *cloudcontrollerconfig.CompletedConfig) func() time.Duration {
return func() time.Duration {
factor := rand.Float64() + 1