mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 15:39:39 +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
|
||||
// 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
|
||||
// collection, and that SharedInformer is `Run()` then that
|
||||
// SharedInformer's cache eventually holds an exact copy of that
|
||||
@ -140,7 +140,7 @@ type SharedInformer interface {
|
||||
AddEventHandler(handler ResourceEventHandler)
|
||||
// AddEventHandlerWithResyncPeriod adds an event handler to the
|
||||
// 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
|
||||
// does not add any interactions with the authoritative storage.
|
||||
AddEventHandlerWithResyncPeriod(handler ResourceEventHandler, resyncPeriod time.Duration)
|
||||
|
Loading…
Reference in New Issue
Block a user