Kubernetes accepts the Application because it is valid for the API. Argo CD refuses to process it, though: the target namespace or repository lies outside what the AppProject allows. The sync status stays Unknown.
Symptom
argocd app get ausreisser | grep -E "Sync Status|InvalidSpecError" Sync Status: Unknown InvalidSpecError application destination server 'https://kubernetes.default.svc' and namespace 'kube-system' do not match any of the allowed destinations in project 'notes' 2026-11-14 20:18:34 +0000 UTC
argocd app sync does not help: in the course it had not returned after two minutes.
Diagnosis
The allowed targets and sources are in the project.
argocd proj get notes Name: notes Description: Team notes Destinations: https://kubernetes.default.svc,notes* Repositories: [email protected]:<du>/argocd-fleet.git Allowed Cluster Resources: /Namespace
Causes
destinationsTarget namespace not allowed by the project
The AppProject only allows namespaces starting with notes. An Application in project notes that targets kube-system is rejected by Argo CD, although Kubernetes accepted it.
sourceReposSource not allowed by the project
The same condition appears when the repository is missing: a foreign Helm repository is not listed in sourceRepos.
argocd app get fremdes-chart | grep InvalidSpecError InvalidSpecError application repo https://stefanprodan.github.io/podinfo is not permitted in project 'notes' 2026-11-14 20:21:05 +0000 UTC
Fix
Don't: Moving the team to the default project to get rid of the limit. default allows everything – exactly what an AppProject is meant to prevent.
GitOps with Argo CD hands-on, day 9: AppProjects, testing the limits, RBAC for teams and tokens.
Go to day 9 →
FAQ
Why does argocd app sync hang on InvalidSpecError?
Argo CD does not process an Application with an invalid spec. The sync waits for an operation that never starts – only fixing the cause resolves it.
What does notes* in Destinations allow?
All namespaces starting with notes, including future environments such as notes-dev from an ApplicationSet.