With "apps in any namespace" enabled, an Application in `team-a` namespace shows `app is not allowed in project 'team-a', or the project does not exist`.
AdvancedTroubleshootingRepos, Clusters, Projects & Permissions
Answer
Likely causes → The AppProject does not list the namespace in spec.sourceNamespaces, or the controller and server were not started with --application-namespaces covering it.
Diagnose →
kubectl -n argocd get cm argocd-cmd-params-cm -o yaml | grep application.namespaces
kubectl -n argocd get appproject team-a -o yaml | yq '.spec.sourceNamespaces'
Fix → Set application.namespaces: team-* in argocd-cmd-params-cm, restart server and controller, and add sourceNamespaces: ["team-a"] to the project.
Prevent → Treat both settings as one change in the platform repo; never use "*" in sourceNamespaces for tenant projects.
More on Repos, Clusters, Projects & Permissions
Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.BeginnerAn SSH repo fails with `ssh: handshake failed: knownhosts: key is unknown`.BeginnerSSH repo: `ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain`.BeginnerA self-hosted GitLab repo fails with `x509: certificate signed by unknown authority`.IntermediateA credential template exists for `https://github.com/org`, yet new repos under the org still fail with `authentication required`.IntermediateSync fails with `application repo https://github.com/org/payments-config.git is not permitted in project 'team-a'`.Beginner