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

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.

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

More on The Application CRD & Sync Policies