After restructuring the repository, the Application points to a folder without manifests. With prune, a sync would delete everything. Argo CD protects against that and skips the automatic sync – the application keeps running unchanged.
Symptom
argocd app get notes Sync Status: OutOfSync from main (0317866) Health Status: Healthy CONDITION MESSAGE LAST TRANSITION SyncError Skipping sync attempt to [031786604b0cc61737d82058acd58219485d7059]: auto-sync will wipe out all resources 2026-11-14 08:51:36 +0000 UTC
The Application stays OutOfSync, health stays Healthy: nothing has happened yet.
Diagnosis
kubectl kustomize renders locally what Argo CD would render – that is how you check the new overlay.
kubectl kustomize apps/notes/overlays/prod | grep "^kind:" kind: Secret kind: Service kind: PersistentVolumeClaim kind: Deployment
Causes
leerer PfadThe Application's path no longer contains manifests
After moving to base and overlays, apps/notes only holds subfolders. For Argo CD the path is empty – with prune that would mean deleting everything, including the volume and database.
SchutzThe safeguard against empty syncs kicks in
An automatic sync that would remove all objects does not happen. It could be switched off with allowEmpty: true under automated.
Fix
kubectl apply -f notes-app.yaml argocd app wait notes --operation --health --sync application.argoproj.io/notes configured Sync Status: Synced to main (0317866) Health Status: Healthy Phase: Succeeded
Don't: Setting allowEmpty: true so the sync goes through. Then prune really deletes everything on the next empty path, database volumes included.
GitOps with Argo CD hands-on, day 6: Kustomize with base and overlays, a dangerous intermediate state and ignoreDifferences.
Go to day 6 →
FAQ
Is data lost when the sync is skipped?
No. Argo CD does not sync at all; the objects in the cluster stay unchanged.
How do I avoid the intermediate state?
Change the Application and the folder move in one step, or point the Application to the new path first and remove the old files afterwards.