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.
More on OutOfSync Loops & Diff Problems
An app flips between `Synced` and `OutOfSync` every few seconds and the sync history grows constantly.Intermediate`argocd app diff` shows only `replicas: 2` vs `replicas: 5` on a Deployment that has an HPA, and the app never stays Synced.BeginnerA MutatingWebhookConfiguration is always OutOfSync on `webhooks[0].clientConfig.caBundle`.IntermediateAfter installing Istio, every Deployment shows OutOfSync because of injected sidecar fields.IntermediateA ConfigMap is OutOfSync and the diff shows the same data in a different format (a number became a string).BeginnerA Deployment is OutOfSync on `resources.limits.cpu`: Git says `1000m`, live says `1`.Intermediate