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.
More on Rapid-Fire Commands
How do you get the initial admin password and log in from the CLI?BeginnerHow do you create an Application from the CLI with auto-sync?BeginnerHow do you see exactly what would change before syncing?BeginnerHow do you force Argo CD to re-render manifests ignoring its cache?BeginnerHow do you register a new cluster and list clusters?BeginnerHow do you stop a stuck sync operation?Intermediate