What happens when you change `spec.source.path` on an existing Application with prune enabled?
AdvancedConceptThe Application CRD & Sync Policies
Answer
Argo CD renders the new path; anything tracked by this app that is not in the new manifests is now extraneous and gets pruned, while new resources are created. If the new path contains renamed objects, you get delete-and-create rather than update, which can mean downtime or data loss for PVCs and StatefulSets. Do it with prune temporarily disabled, sync, verify, then prune manually, or mark critical objects with Prune=false.
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