Interview Prep/GitOps & Argo CD/Sync Operations, Hooks & Health

A sync succeeds but some resources are applied before their dependencies despite sync waves.

AdvancedTroubleshootingSync Operations, Hooks & Health
Answer

Likely causes → Waves only order resources inside one Application. The dependency lives in another app; or the wave annotation is on a Helm value that never renders; or the wave value is not a quoted string.

Diagnose → argocd app manifests web | grep -B2 -A2 sync-wave; check which app owns each resource.

Fix → Move dependent resources into the same app, or order Applications themselves with waves in the parent app-of-apps. Note that Application health must be enabled for waves between apps to wait on child health: add the argoproj.io/Application health customization in argocd-cm.

Prevent → Keep tightly coupled resources in one app and quote wave values ("-1").

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

More on Sync Operations, Hooks & Health