Interview Prep/GitOps & Argo CD/ApplicationSets, App-of-Apps & Multi-Cluster

What happens to generated Applications when an element disappears from a generator?

IntermediateConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer

By default the ApplicationSet controller deletes the Application, and if the Application has the resources finalizer, its resources are deleted too. Protections: syncPolicy.preserveResourcesOnDeletion: true (delete Applications but leave workloads), and applicationsSync: create-only or create-update to stop the controller deleting Applications at all. A bad commit that removes a config.json could otherwise wipe an environment.

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

More on ApplicationSets, App-of-Apps & Multi-Cluster