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

Add --selector option to kubens #387

Open
acouvreur opened this issue Jun 5, 2023 · 1 comment
Open

Add --selector option to kubens #387

acouvreur opened this issue Jun 5, 2023 · 1 comment

Comments

@acouvreur
Copy link

The list_namespace could have a new --selector option that would be beneficial to prefilter namespaces based on a known labels.

I believe this would improve load performance on high namespace volume and also help automating the pre-filtering.

@ahmetb
Copy link
Owner

ahmetb commented Jun 7, 2023

This is not a bad idea but it largely doesn't address the root cause of the performance problem for large clusters (that is, selectors are executed after all namespaces are exhaustively retrieved from etcd).

A lot of the users alias this cmd to something like kns mostly because they want the simplicity, and this is a request I haven't received at all since the inception of the tool, which further makes me think it's not something people really need.

But I'll keep it open to see if there's more interest.

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

No branches or pull requests

2 participants