Interview Prep/GitOps & Argo CD/GitOps Principles & Delivery Models

Why should environment state be declared rather than scripted?

IntermediateConceptGitOps Principles & Delivery Models
Answer

A script describes how to get from one state to another and depends on the starting point; running it twice or from an unexpected state can break things. A declaration describes the end state, so a controller can compute the difference from any starting point, re-run safely (idempotence), detect drift, and rebuild from nothing. That is what makes continuous reconciliation and DR possible.

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

More on GitOps Principles & Delivery Models