Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate cluster scoped objects while listing using MultiNamespacedCache #1377

Closed
vinod-patil opened this issue Feb 9, 2021 · 1 comment · Fixed by #1418
Closed

Duplicate cluster scoped objects while listing using MultiNamespacedCache #1377

vinod-patil opened this issue Feb 9, 2021 · 1 comment · Fixed by #1418

Comments

@vinod-patil
Copy link

I am using manager client to list and get resources from cache with below option to cache objects from multiple namespaces

ctrl.Options{
   NewCache: cache.MultiNamespacedCacheBuilder([]string{"ns1", "ns2", "ns3"})
}

But whenever I list cluster scoped resources function is returning duplicate resources after combining resources from each namespace map so in my case resource count is going to be 3 * actual as I used 3 namespaces in cache builder.

@alvaroaleman
Copy link
Member

Sounds like the MultiNamespaceCache needs proper handling for cluster-scoped resources. Objections to converge this issue into #1378 and close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants