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

What are the sync phases and hook types?

BeginnerConceptSync Waves, Hooks, Health & Diffing
Answer

Phases run in order: PreSync, Sync, PostSync. Hook types set with argocd.argoproj.io/hook:

  • PreSync: before the main apply (migrations, backups).
  • Sync: alongside normal resources, ordered by wave.
  • PostSync: after all Sync resources are healthy (smoke tests, notifications).
  • SyncFail: only when the sync fails (cleanup, alerting).
  • PostDelete: after the app's resources are deleted (cleanup of external state).
  • Skip: tells Argo CD not to apply this manifest at all.
All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Sync Waves, Hooks, Health & Diffing