Skip to content

Commit 8cca6d9

Browse files
authored
Merge pull request kubernetes#130465 from Monokaix/resync
correct ResyncPeriod comments
2 parents a18b4a8 + e5becd0 commit 8cca6d9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cmd/kube-controller-manager/app/controllermanager.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ controller, and serviceaccounts controller.`,
169169
}
170170

171171
// ResyncPeriod returns a function which generates a duration each time it is
172-
// invoked; this is so that multiple controllers don't get into lock-step and all
173-
// hammer the apiserver with list requests simultaneously.
172+
// invoked; this is because that multiple controllers don't get into lock-step.
174173
func ResyncPeriod(c *config.CompletedConfig) func() time.Duration {
175174
return func() time.Duration {
176175
factor := rand.Float64() + 1

staging/src/k8s.io/cloud-provider/app/controllermanager.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,7 @@ func CreateControllerContext(s *cloudcontrollerconfig.CompletedConfig, clientBui
499499
}
500500

501501
// ResyncPeriod returns a function which generates a duration each time it is
502-
// invoked; this is so that multiple controllers don't get into lock-step and all
503-
// hammer the apiserver with list requests simultaneously.
502+
// invoked; this is because that multiple controllers don't get into lock-step.
504503
func ResyncPeriod(c *cloudcontrollerconfig.CompletedConfig) func() time.Duration {
505504
return func() time.Duration {
506505
factor := rand.Float64() + 1

0 commit comments

Comments
 (0)