Skip to content

Commit 18df20d

Browse files
committed
📖 Docs for SyncPeriod: No sync from api-server.
Signed-off-by: Thomas Guettler <[email protected]>
1 parent 6824653 commit 18df20d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkg/cache/cache.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ type Options struct {
148148
Mapper meta.RESTMapper
149149

150150
// SyncPeriod determines the minimum frequency at which watched resources are
151-
// reconciled. A lower period will correct entropy more quickly, but reduce
151+
// reconciled. It causes all resources in the local cache to be re-enqueued
152+
// for reconciliation, even if there are no new events. It does
153+
// not sync between the api-server and the local cache.
154+
// A lower period will correct entropy more quickly, but reduce
152155
// responsiveness to change if there are many watched resources. Change this
153156
// value only if you know what you are doing. Defaults to 10 hours if unset.
154157
// there will a 10 percent jitter between the SyncPeriod of all controllers
@@ -174,8 +177,8 @@ type Options struct {
174177
// instead of `reconcile.Result{}`.
175178
//
176179
// SyncPeriod will trigger update events with the old object being equal to the new
177-
// object, except when the cache was out of sync.
178-
// If you filter update events like this:
180+
// object. If you filter update events like this:
181+
//
179182
// Controller.Watch(
180183
// &source.Kind{Type: v1.MyCustomKind},
181184
// &handler.EnqueueRequestForObject{},

0 commit comments

Comments
 (0)