lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.55k stars 1.47k forks source link

Add a drop-down list of Workloads' labels from selected Namespace(s) #2876

Open kangshung opened 3 years ago

kangshung commented 3 years ago

What would you like to be added: A drop-down list of Workloads' labels from selected Namespace(s).

Why is this needed: It would be nice if we had a drop-down list of all available labels in selected Namespaces when filtering Pods (or all Workloads). In the same way, we can select Namespaces.

This would save a lot of time while searching for a specific Pod(s) in a Namespace(s) that have a lot of objects. It eliminates the need of checking for labels that are common only for Pods we want to filter.

Actually, it may be extended to Services or other K8s API resources that are based on labels as well (NetworkPolicies?). In netpols, there is also a bigger potential to list/show namespaceSelectors and labelSelectors for ingress/egress, but that is a separate task.

Environment you are Lens application on:

jim-docker commented 3 years ago

Thanks for the idea, we'll consider it in our backlog

AndrewSav commented 3 years ago

I would like to support this request. I personally was thinking about having new columns on the workloads that would contain the value of labels, and the way to add remove those columns, but a drop down would work too, it just needs to account for both label names and label values.