Add --selector option to kubens
acouvreur opened this issue · 1 comments
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.
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.