Cluster Stats command fails early if an application references a removed cluster #21808
Open
3 tasks
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
when issuing an
argocd admin cluster stats
command the stats will not show up if a cluster is no longer registered with Argo CD but an application references it.To Reproduce
Add a cluster to Argo CD, deploy an application there, remove the cluster, and try to run the stats command.
Expected behavior
A warning message is logged saying the unreachable cluster is skipped and stats are generated for the other clusters OR the unreachable cluster is still included in the output with an error message.
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: