argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

UI: Application filters - Label filter & Wildcards

Open allir opened this issue 2 years ago • 4 comments

Summary

It would be super nice to be able to filter resources in an application by labels. Also to be able to use wildcards in the name filter.

Example:. let's say we deploy a microservice applicaiton using a single Argo Application CRD, to show only a single micro service and it's other resources, ConfigMaps etc, a label filter would help out. When dealing with many services the UI easily gets's overwhelmed by multiple resources.

Example2: I deploy a "stack" of services using a Helm chart with dependencies. Being able to filter out each sub chart using labels for example would make sense, since it's all under a single Argo Application.

Exampe3: I want to find all resources that include "test-" as a prefix, being able to use wildcards in the name filter would help out here.

Motivation

Breaking some of these resources into multiple Argo Applications does not always make sense, having a single "Application" that include for example an umbrella helm chart with multiple dependencies will easily fill out the UI with multiple resources. Today I can filter by resource type, Deployment, ConfigMap, etc. But I can't group together related resources using labels for example.

Proposal

The Applications view already has a filter for labels. Suggest that will also be made available within each application.

Make it possible to use wildcards, "*", when searching for resources by name at least.

allir avatar Mar 21 '22 16:03 allir

Any news on this topic? Struggling with this topic every day...

starwarsfan avatar Nov 09 '22 07:11 starwarsfan

I'm not experienced enough in Typescript but I'd reckon that the "label" filter of the applications-list/applications-filter can maybe reused and put into the filter options for the application-details/application-resource-filter. I hope this helps with the new label filter.

Using wildcards with names would be great too, but I struggle to find the code for where one can change that.

FrogWithASock avatar Dec 02 '22 15:12 FrogWithASock

This is a huge problem in our use.

Some of our applications have 20+ individual charts, each with their own 7-8 objects. If for some reason only 1 chart is changed, it's very very very difficult to make changes/status for that 1 chart. If we could filter by appname-* that would make work a lot more reliable.

bhavicp avatar Aug 09 '23 17:08 bhavicp

I reckon maybe not using proper wildcard or fuzzysearch but the default behaviour should be using the prefix.

E.g. searching for myworkload- should bring all resources that start with that prefix.

Please implement this :pray: .

migueleliasweb avatar Jan 03 '24 00:01 migueleliasweb