mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 23:48:30 +00:00
Fix error in periodic resyncs description
Make it clear that periodic resyncs fire update notifications, not create notifications as the old comments incorrectly stated. Kubernetes-commit: 3ae8c864de24a2ad42321c9cbd71099a2b6dcef3
This commit is contained in:
parent
85843e6e02
commit
ce6197e865
4
tools/cache/shared_informer.go
vendored
4
tools/cache/shared_informer.go
vendored
@ -70,7 +70,7 @@ import (
|
|||||||
// The local cache starts out empty, and gets populated and updated
|
// The local cache starts out empty, and gets populated and updated
|
||||||
// during `Run()`.
|
// during `Run()`.
|
||||||
//
|
//
|
||||||
// As a simple example, if a collection of objects is henceforeth
|
// As a simple example, if a collection of objects is henceforth
|
||||||
// unchanging, a SharedInformer is created that links to that
|
// unchanging, a SharedInformer is created that links to that
|
||||||
// collection, and that SharedInformer is `Run()` then that
|
// collection, and that SharedInformer is `Run()` then that
|
||||||
// SharedInformer's cache eventually holds an exact copy of that
|
// SharedInformer's cache eventually holds an exact copy of that
|
||||||
@ -140,7 +140,7 @@ type SharedInformer interface {
|
|||||||
AddEventHandler(handler ResourceEventHandler)
|
AddEventHandler(handler ResourceEventHandler)
|
||||||
// AddEventHandlerWithResyncPeriod adds an event handler to the
|
// AddEventHandlerWithResyncPeriod adds an event handler to the
|
||||||
// shared informer using the specified resync period. The resync
|
// shared informer using the specified resync period. The resync
|
||||||
// operation consists of delivering to the handler a create
|
// operation consists of delivering to the handler an update
|
||||||
// notification for every object in the informer's local cache; it
|
// notification for every object in the informer's local cache; it
|
||||||
// does not add any interactions with the authoritative storage.
|
// does not add any interactions with the authoritative storage.
|
||||||
AddEventHandlerWithResyncPeriod(handler ResourceEventHandler, resyncPeriod time.Duration)
|
AddEventHandlerWithResyncPeriod(handler ResourceEventHandler, resyncPeriod time.Duration)
|
||||||
|
Loading…
Reference in New Issue
Block a user