Interview Prep/GitOps & Argo CD/OutOfSync Loops & Diff Problems

An app stays OutOfSync showing a resource marked "requires pruning", but auto-sync is on.

BeginnerTroubleshootingOutOfSync Loops & Diff Problems
Answer

Likely causes → automated.prune is false, or the resource has Prune=false, or Prune=confirm waiting for approval.

Diagnose →

argocd app get web -o yaml | yq '.spec.syncPolicy'
kubectl get <kind> <name> -o jsonpath='{.metadata.annotations.argocd\.argoproj\.io/sync-options}'

Fix → argocd app sync web --prune after reviewing, or enable prune: true, or confirm the prune in the UI.

Prevent → Decide per app whether automated pruning is acceptable and document it.

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

More on OutOfSync Loops & Diff Problems