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.
More on The Application CRD & Sync Policies
Walk through the key fields of an Argo CD `Application`.BeginnerWhat values can `targetRevision` take?BeginnerWhat is the difference between `destination.server` and `destination.name`?BeginnerWhy is `prune` disabled by default?BeginnerExplain `selfHeal`. When might you not want it?IntermediateWhat is the `retry` block in a sync policy?Intermediate