mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #130465 from Monokaix/resync
correct ResyncPeriod comments
This commit is contained in:
@@ -169,8 +169,7 @@ controller, and serviceaccounts controller.`,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ResyncPeriod returns a function which generates a duration each time it is
|
// 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
|
// invoked; this is because that multiple controllers don't get into lock-step.
|
||||||
// hammer the apiserver with list requests simultaneously.
|
|
||||||
func ResyncPeriod(c *config.CompletedConfig) func() time.Duration {
|
func ResyncPeriod(c *config.CompletedConfig) func() time.Duration {
|
||||||
return func() time.Duration {
|
return func() time.Duration {
|
||||||
factor := rand.Float64() + 1
|
factor := rand.Float64() + 1
|
||||||
|
@@ -499,8 +499,7 @@ func CreateControllerContext(s *cloudcontrollerconfig.CompletedConfig, clientBui
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ResyncPeriod returns a function which generates a duration each time it is
|
// 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
|
// invoked; this is because that multiple controllers don't get into lock-step.
|
||||||
// hammer the apiserver with list requests simultaneously.
|
|
||||||
func ResyncPeriod(c *cloudcontrollerconfig.CompletedConfig) func() time.Duration {
|
func ResyncPeriod(c *cloudcontrollerconfig.CompletedConfig) 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