argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
16.71k stars 5.06k forks source link

Default Application Filters #15263

Open dyatlov opened 10 months ago

dyatlov commented 10 months ago

Summary

We'd like to have default application filters in UI to limit what applications are visible to a user.

Motivation

TLDR: we have some "garbage" applications consisting of just a single resource and the ratio of good / garbage app is 1:10.

In order for some of our applications to work we need to make resource changes in other clusters and namespaces upon deployment of an application. These "resource changes" are deployed as other applications. That results in a lot of automated apps which makes no real use for us but ArgoCD UI still loads all of them and each time we have to filter out them manually.

Proposal

Add default filters into argocd-cm.yaml and then the UI should pass on these filters to backend when loading application list. The filters can be visible in sidebar as normal ones. For example, if we added a default filter by label, then upon loading ArgoCD UI that label should be already preselected in sidebar.

saumeya commented 10 months ago

Hi @dyatlov how about using favorite filter for the necessary applications?

dyatlov commented 10 months ago

@saumeya that's also fine, but we should have an ability to:

That's not yet supported afaik.