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

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.

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

More on The Application CRD & Sync Policies