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

Support filtering Applications by Annotations in UI

Open zc149 opened this issue 2 months ago • 4 comments

Summary

Add support for filtering Applications by annotations in the Argo CD UI.
Currently, Applications can be filtered by Sync status, Health status, and Labels, but not by Annotations.

Motivation

In our environment we rely on annotations injected by tools like Argo CD Image Updater
(e.g., argocd-image-updater.argoproj.io/write-back-method=digest).

When we want to manage Applications that use a specific updater strategy or custom sync behavior,
we have to manually browse through the entire list in the UI.
This is time-consuming and does not scale well in large clusters with many Applications.

For example:
I needed to filter only those Applications with Image Updater annotations, but since the UI only supports label filtering, I had to click into each Application individually.

Proposal

  • Extend the Application list UI to support annotation-based filtering, in addition to existing label filters.
  • UX should be consistent with label filtering, but target metadata.annotations.
  • (Out of scope) CLI changes are not required — my request is UI-only.

This will make it much easier for operators to work with Applications that have important annotations, such as those applied by Argo CD Image Updater or other controllers.

zc149 avatar Oct 27 '25 08:10 zc149

Nice proposal! The implementation might be straightforward since annotations are already available in Application.metadata.annotations. The UI filter component (used for labels) could probably be extended to accept a “field selector” mode (e.g., label vs. annotation).

Maybe something like a dropdown toggle in the filter bar — “Filter by: Label / Annotation / Status”?

Aamir017 avatar Oct 27 '25 13:10 Aamir017

@Aamir017 Thanks, that sounds like a very clean solution. Unless there are objections, I’ll start working on a PR with this approach.

zc149 avatar Oct 27 '25 14:10 zc149

Yes, you can open a pr and if you need any help let me know @zc149

Aamir017 avatar Oct 30 '25 00:10 Aamir017

Hi @zc149, are you still planning working on this?

aali309 avatar Dec 03 '25 13:12 aali309

@aali309 Thanks for the reminder! I was busy with my schedule recently, but I’ve now opened a PR for this issue: #25527. I’d really appreciate your feedback.

zc149 avatar Dec 05 '25 01:12 zc149