Why is `prune` disabled by default?
BeginnerConceptThe Application CRD & Sync Policies
Answer
Pruning deletes live resources. A bad refactor (renamed folder, broken Kustomize path, wrong branch) would otherwise delete production workloads, PVCs or namespaces on the next sync. Making it opt-in forces a conscious decision. Even with prune on, protect critical objects with argocd.argoproj.io/sync-options: Prune=false and keep allowEmpty: 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?BeginnerExplain `selfHeal`. When might you not want it?IntermediateWhat is the `retry` block in a sync policy?Intermediate