One of the four fundamental GitOps principles is Versioned and Immutable. This means that the
entire system’s desired state must be stored in a Git repository with version control. Each change
must be represented as a commit, and Git’s immutability guarantees a reliable, auditable history of
how the system evolved.
“The desired state is stored in a version control system. The record of truth is stored in an immutable
history, and changes can be audited and reverted if necessary. This guarantees that the system’s
configuration is versioned, immutable, and traceable.”
Thus, configuration and infrastructure must be version-controlled and immutable, never changed
directly in production.
Reference: GitOps Principles (CNCF GitOps Working Group), Principle 2: The desired system state is
stored as versioned and immutable.
===========