Interview Prep/GitOps & Argo CD/Sync Waves, Hooks, Health & Diffing

How does Argo CD compute a diff?

IntermediateConceptSync Waves, Hooks, Health & Diffing
Answer

By default it does a three-way comparison using the kubectl.kubernetes.io/last-applied-configuration annotation: desired (rendered), last applied, and live. Fields present in live but never declared (added by defaulting or other controllers) are ignored, while fields you declared and someone changed are flagged. It also normalizes known quirks (quantities, empty values, defaults for certain kinds) and applies ignoreDifferences. With server-side diff, it instead asks the API server for a dry-run apply result and compares that with live.

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

More on Sync Waves, Hooks, Health & Diffing