Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repos, Clusters, Projects & Permissions