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

What is `PruneLast=true` for?

IntermediateConceptThe Application CRD & Sync Policies
Answer

It defers pruning until after all other resources in all waves have been applied and are healthy. Example: you rename a Service from api to api-v2. Without PruneLast, the old Service might be deleted before the new one is ready, briefly breaking traffic. With PruneLast, api-v2 comes up first, then api is removed.

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

More on The Application CRD & Sync Policies