Skip to content

Commit 700befe

Browse files
authored
Merge pull request #2863 from alvaroaleman/document
📖 Document that indexes can be added after Informer was started
2 parents 162a113 + 41c63d0 commit 700befe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cache/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ type Informer interface {
117117
// This function is guaranteed to be idempotent and thread-safe.
118118
RemoveEventHandler(handle toolscache.ResourceEventHandlerRegistration) error
119119

120-
// AddIndexers adds indexers to this store. If this is called after there is already data
121-
// in the store, the results are undefined.
120+
// AddIndexers adds indexers to this store. It is valid to add indexers
121+
// after an informer was started.
122122
AddIndexers(indexers toolscache.Indexers) error
123123

124124
// HasSynced return true if the informers underlying store has synced.

0 commit comments

Comments
 (0)