What is the `retry` block in a sync policy?
IntermediateConceptThe Application CRD & Sync Policies
Answer
It retries a failed sync operation with exponential backoff:
syncPolicy:
retry:
limit: 5 # -1 for unlimited
backoff:
duration: 5s
factor: 2
maxDuration: 3m
Useful for transient failures: a CRD that another app installs a few seconds later, a webhook that is not ready, API throttling. It is not a fix for broken manifests; those will fail five times instead of once.
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`?BeginnerWhat does `syncPolicy.automated` do, and what are its sub-fields?BeginnerWhy is `prune` disabled by default?BeginnerExplain `selfHeal`. When might you not want it?Intermediate