Skip to content

Commit d25df1b

Browse files
authored
Merge pull request kubernetes-sigs#325 from vincepri/indexer-func-doc
:docs: Clarify IndexerFunc comment with namespaced objects
2 parents 45d6520 + 496f339 commit d25df1b

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)