Skip to content

Commit 41c63d0

Browse files
committed
📖 Document that indexes can be added after Informer was started
The comment is outdated, support for it was added in Kube 1.30, ref kubernetes/kubernetes#117046
1 parent 162a113 commit 41c63d0

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)