Interview Prep/GitOps & Argo CD/Tenancy, Security & Secrets

A developer accidentally deleted an Application in the UI and all its resources disappeared. How do you prevent this?

IntermediateScenarioTenancy, Security & Secrets
Answer

Situation read → Cascade delete via finalizer plus broad RBAC.

What I'd do →

  1. Remove delete on applications from developer roles; deletions happen by removing files from Git.
  2. For apps managed by app-of-apps or ApplicationSets, the parent recreates them; make sure that is in place for prod.
  3. Add Delete=false on critical resources (PVCs, namespaces) so app deletion leaves them.
  4. Recover now: revert or re-apply the Application from Git and sync.

Why → Deletion should go through review like any other change.

Interview tip → Mention that with declarative Applications, the UI delete is undone by the parent within minutes.

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

More on Tenancy, Security & Secrets