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

What does `syncPolicy.automated` do, and what are its sub-fields?

BeginnerConceptThe Application CRD & Sync Policies
Answer

It makes Argo CD sync automatically whenever the app is OutOfSync due to a new Git revision. Sub-fields:

  • prune (default false): delete resources no longer in Git.
  • selfHeal (default false): also sync when live state drifts without a new commit.
  • allowEmpty (default false): permit syncs that would leave the app with zero resources, a guard against an accidentally emptied path deleting everything.

Automated sync does not retry the same failed revision on its own unless retry is set.

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

More on The Application CRD & Sync Policies