Interview Prep/GitOps & Argo CD/The Application CRD & Sync Policies

How does `argocd app rollback` work, and why is it discouraged in GitOps?

IntermediateConceptThe Application CRD & Sync Policies
Answer

It re-syncs the app to a revision from its sync history (argocd app rollback web 12). It requires auto-sync to be disabled, otherwise you get rollback cannot be initiated when auto-sync is enabled. The problem: Git still points at the newer, bad revision, so the app shows OutOfSync and the next person who syncs, or re-enables auto-sync, redeploys the bad version. The GitOps way is git revert, which keeps Git and cluster aligned. Use CLI rollback only as an emergency brake.

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

More on The Application CRD & Sync Policies