Skip to content

Instantly share code, notes, and snippets.

@nastacio
Last active September 2, 2025 14:06
Show Gist options
  • Select an option

  • Save nastacio/d9e18807400fa84d31340aaaefba02fc to your computer and use it in GitHub Desktop.

Select an option

Save nastacio/d9e18807400fa84d31340aaaefba02fc to your computer and use it in GitHub Desktop.
Summary table for Argo CD deletion
Policy Goal Trade-offs Reference
1. ApplicationSet syncPolicy Control creation, update, and deletion of generated Applications + Fine-grained lifecycle control; prevents costly deletions.
– Overrides may not be enabled; risk of misconfiguration.
Docs: ApplicationSet spec
2. ApplicationSet preserveResourcesOnDeletion Prevent cascading deletion of Application-managed resources + Avoids mass resource deletion when Applications are removed.
– May leave orphaned resources requiring manual cleanup.
Docs: ApplicationSet spec
3. Application non-cascading deletion Prevent cascading deletion when removing an Application resource + Safely remove Applications while retaining workloads.
– Risk of drift; manual cleanup needed later.
Docs: App deletion
4. Application syncPolicy prune Prevent mass-pruning of resources in an Application + Ensures Git is the single source of truth.
– Misuse can cause accidental deletions from Git mistakes.
Docs: Auto-sync pruning
5. Resource Prune sync-option Prevent pruning of specific resources in an Application + Granular protection for critical resources.
– Adds complexity; can be overridden by authorized users.
Docs: Sync-options prune
6. Resource Delete sync-option Prevent deletion of specific resources in an Application + Strongest safeguard; fully blocks deletion.
– May cause drift or block intentional cleanup.
Docs: Sync-options delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment