Skip to content

Commit 5484dc1

Browse files
authored
Merge pull request #701 from camilamacedo86/multi_namespace_cache-doc
📖: improve MultiNamespacedCacheBuilder info
2 parents 198197f + aaf9bb3 commit 5484dc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cache/multi_namespace_cache.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ type NewCacheFunc func(config *rest.Config, opts Options) (Cache, error)
3636

3737
// MultiNamespacedCacheBuilder - Builder function to create a new multi-namespaced cache.
3838
// This will scope the cache to a list of namespaces. Listing for all namespaces
39-
// will list for all the namespaces that this knows about.
39+
// will list for all the namespaces that this knows about. Note that this is not intended
40+
// to be used for excluding namespaces, this is better done via a Predicate. Also note that
41+
// you may face performance issues when using this with a high number of namespaces.
4042
func MultiNamespacedCacheBuilder(namespaces []string) NewCacheFunc {
4143
return func(config *rest.Config, opts Options) (Cache, error) {
4244
opts, err := defaultOpts(config, opts)

0 commit comments

Comments
 (0)