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

What values can `targetRevision` take?

BeginnerConceptThe Application CRD & Sync Policies
Answer

For Git: a branch (main), a tag (v1.4.2), a full or short commit SHA, or HEAD (the default branch). For Helm repositories: an exact chart version (65.1.1) or a semver constraint (65.*, >=1.2.0 <2.0.0). Branches and ranges move; tags and SHAs are fixed. In production we pin tags or SHAs for anything shared, and use branches for dev.

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

More on The Application CRD & Sync Policies