Interview Prep/GitOps & Argo CD/Rapid-Fire Commands

How do you wait in a pipeline until an app is synced and healthy?

IntermediateConceptRapid-Fire Commands
Answer
argocd app sync web --timeout 300
argocd app wait web --sync --health --operation --timeout 600

It exits non-zero on timeout or if the app becomes Degraded, which fails the pipeline step. For Rollouts, kubectl argo rollouts status web -n web --timeout 15m waits for the rollout itself.

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

More on Rapid-Fire Commands