An app is OutOfSync on a field that is not in Git at all, after an Argo CD upgrade.
AdvancedTroubleshootingOutOfSync Loops & Diff Problems
Answer
Likely causes → Diff behaviour changed between versions (normalization, server-side diff defaults, tracking method change), or the last-applied-configuration annotation contains the field from an older manifest so three-way diff still considers it yours.
Diagnose →
argocd app diff web
kubectl get <kind> <name> -o jsonpath='{.metadata.annotations.kubectl\.kubernetes\.io/last-applied-configuration}' | jq .
Fix → Sync once to refresh last-applied-configuration; if the field is defaulted, use server-side diff; if tracking changed, re-sync to add the new tracking annotation.
Prevent → Upgrade a staging instance first and compare the count of OutOfSync apps before and after.
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