Sync fails with `resource :Namespace is not permitted in project team-a.`
IntermediateTroubleshootingRepos, Clusters, Projects & Permissions
Answer
Likely causes → Namespace is a cluster-scoped kind, and the project's clusterResourceWhitelist is empty (the default for a new project). The same happens for ClusterRole, CRD and other cluster-scoped kinds.
Diagnose → argocd proj get team-a -o yaml | yq '.spec.clusterResourceWhitelist'.
Fix → Either let the platform team create the namespace and use CreateNamespace=true only where allowed, or whitelist the specific kind:
clusterResourceWhitelist:
- group: ""
kind: Namespace
Prevent → Keep cluster-scoped resources in a platform-owned project; tenants get namespaced kinds only.
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