Skip to content

Commit 496f339

Browse files
committed
Clarify IndexerFunc comment with namespaced objects
Signed-off-by: Vince Prignano <[email protected]>
1 parent 6443f37 commit 496f339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/client/interfaces.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ type Client interface {
8989
}
9090

9191
// IndexerFunc knows how to take an object and turn it into a series
92-
// of (non-namespaced) keys for that object.
92+
// of non-namespaced keys. Namespaced objects are automatically given
93+
// namespaced and non-spaced variants, so keys do not need to include namespace.
9394
type IndexerFunc func(runtime.Object) []string
9495

9596
// FieldIndexer knows how to index over a particular "field" such that it

0 commit comments

Comments
 (0)