Interview Prep/GitOps & Argo CD/Argo CD Architecture & Internals

What happens step by step when you click "Sync" in the UI?

IntermediateConceptArgo CD Architecture & Internals
Answer
  1. The UI calls argocd-server, which checks RBAC (applications, sync, project/app).
  2. The server writes an operation field into the Application CR.
  3. The controller picks up the operation, gets manifests from the repo-server for the target revision, and computes the diff.
  4. It runs the sync: PreSync hooks, then Sync-phase resources by wave (applying with kubectl semantics, pruning if requested), then PostSync hooks, waiting for health between waves.
  5. It records status.operationState (phase Succeeded/Failed, per-resource results) and adds an entry to status.history.
All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Argo CD Architecture & Internals