If the resources finalizer is used on an AppProject, the application controller doesn't check all namespaces for existing Applications before finalizing deletion
To Reproduce
create AppProject in default argocd namespace, with resources finalizer
create Application in another namespace, under the aforementioned AppProject
Delete the AppProject
The Application is left hanging
Expected behavior
The AppProject waits for all Applications to delete before removing the finalizer
Checklist:
argocd version
.Describe the bug
If the resources finalizer is used on an AppProject, the application controller doesn't check all namespaces for existing Applications before finalizing deletion
To Reproduce
argocd
namespace, with resources finalizerExpected behavior
The AppProject waits for all Applications to delete before removing the finalizer
Screenshots
Version
The problem code appears to be here: https://github.com/argoproj/argo-cd/blob/ee9b38fe5ce15ce72ca57cdf16b0addbe2b0a27a/controller/appcontroller.go#L1015 only the default namespace is checked for Applications