Skip to content

Argo CD: resource is not permitted in project – sync stuck

GitOpstested on kubeadm, Kubernetes v1.37.3, Argo CD

A team puts a resource into Git that its Argo CD project does not allow. The sync fails – completely. The tricky part: even after the resource is gone from Git again, nothing happens.

Symptom

argocd app get team-green-shop-staging | grep -E 'Sync Status|ResourceQuota'
k -n argocd get application team-green-shop-staging -o jsonpath='{.status.operationState.phase}: {.status.operationState.message}{"\n"}'
Sync Status:        OutOfSync from main (4456637)
       ResourceQuota  team-green-staging  mehr-platz   Unknown  Missing        resource :ResourceQuota is not permitted in project team-green
Running: one or more synchronization tasks are not valid: resource :ResourceQuota is not permitted in project team-green. Retrying attempt #2 at 2026-11-27T23:23:22Z.

The project blocks the whole sync, not just the quota. The sync retries with a growing pause.

Diagnosis

After removing the quota from Git and pushing a new commit, check whether the cluster follows.

argocd app get team-green-shop-staging --refresh | grep -E 'Sync Status'
k -n team-green-staging get deploy shop -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'
Sync Status:        OutOfSync from main (24a6bcd)
nginx:1.29

Causes

not permitted in projectResource type not allowed

The AppProject defines which resources a team may create. ResourceQuota is deliberately not among them – otherwise every team could give itself more room.

Retrying attemptThe running operation is stuck on the old revision

The sync operation retries with the revision it started with. It blocks every new sync, even when Git has long been corrected.

Fix

Terminate the stuck operation; Argo CD then syncs the current revision.
argocd app terminate-op team-green-shop-staging
argocd app get team-green-shop-staging --refresh | grep -E 'Sync Status|Health Status'
k -n team-green-staging get deploy shop -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'
Application 'team-green-shop-staging' operation terminating
Sync Status:        Synced to main (24a6bcd)
Health Status:      Healthy
nginx:1.29-alpine

Don't: Allow the resource in the AppProject just to get the sync through. The project limit is intentional – quotas belong in the hands of the platform team.

▶
Break it yourself and find it – free
CNPE hands-on, Day 4: Argo CD for teams – projects, ApplicationSets, project limits and promotion via pull request.
Go to day 4 →

FAQ

Why does removing the resource from Git not help?

The running sync operation is stuck on the old revision and keeps retrying. Only terminate-op ends it.

Where do I see the message if the UI shows nothing?

In the Application's status.operationState.message field, for example with kubectl -o jsonpath.

Related error patterns

More