Interview Prep/GitOps & Argo CD/Sync Behaviour, Waves & Hooks

You want a `Sync` to happen automatically, but never delete anything without a human looking first. How do you configure it?

BeginnerScenarioSync Behaviour, Waves & Hooks
Answer

Situation read → Auto-apply, manual delete.

What I'd do →

  1. syncPolicy.automated with prune: false.
  2. Resources removed from Git show as "requires pruning"; review them in the UI and run argocd app sync web --prune manually.
  3. For extra safety on specific objects, Prune=confirm.

Why → Creation and updates are low risk; deletion is where incidents happen.

Interview tip → This is a sensible default for prod in teams new to GitOps.

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

More on Sync Behaviour, Waves & Hooks