GitOps sounds like a naming convention — “we deploy from a Git repo” — but that undersells it. Read OpenGitOps’s own specification and how GitOps works is a real architectural claim: the desired state of your system lives declaratively in a versioned, immutable store, and a software agent inside your infrastructure continuously pulls that state and reconciles reality toward it, forever, without anyone pushing a deploy. That’s a distributed-systems pattern with a control-theory flavor — a closed feedback loop — that happens to have been popularized by Kubernetes operators and happens to use Git as the versioned store. Understanding which half of that sentence is load-bearing is the whole point of this article, because one of the ecosystem’s own maintainers has quietly started building around the answer.

The Claim: What GitOps Actually Asserts
The Cloud Native Computing Foundation’s GitOps Working Group codified the pattern as four principles in the OpenGitOps Principles v1.0.0 specification, and they’re worth reading as asserted, not paraphrased, because the precision matters. A system managed by GitOps must be:
- Declarative — “A system managed by GitOps must have its desired state expressed declaratively.” Not a script of imperative steps (
create this, then patch that), but a description of the end state itself. - Versioned and immutable — “Desired state is stored in a way that enforces immutability, versioning and retains a complete version history.” Every change is a new, addressable version; nothing is edited in place.
- Pulled automatically — “Software agents automatically pull the desired state declarations from the source.” No external system pushes credentials or manifests into the environment.
- Continuously reconciled — “Software agents continuously observe actual system state and attempt to apply the desired state.”
Notice what’s absent: the word “Git.” OpenGitOps’s own principles are written generically, about “a versioned, immutable store” and “the source” — not about a git push. Git is simply the store that already satisfied three of the four principles by construction: commits are immutable, history is versioned, and the whole thing was designed around read access without a live connection to the origin. GitOps didn’t invent those properties. It recognized that Git already had them and built a control loop that reads from that shape.

That last point is the one worth sitting with before anything else in this article: GitOps is a claim about how state should be managed — declared, versioned, pulled, reconciled — and Git is one implementation of the store that claim depends on. Everything that follows, including the honest limits at the end, falls out of taking that claim literally instead of treating “GitOps” as a synonym for “CI that runs kubectl apply.”
The Reconciliation Loop: Why Pull Beats Push Here
The mechanism that actually does the work is a reconciliation loop — structurally the same shape as the agentic development loop that keeps re-checking its own work against a goal instead of running once and stopping — and it’s worth being precise about what that means operationally rather than just architecturally. An agent — Flux’s controllers, Argo CD’s application controller — runs inside the target environment, not outside it. On an interval, it fetches the current desired state from the source (a Git repository, a Helm chart, a Kustomize overlay), compares that declared state against what’s actually running, computes the difference, and applies whatever changes are needed to close the gap. Then it does it again. And again. Flux’s own documentation, current as of August 2026, states the default plainly: “the reconciliation runs every five minutes by default,” configurable per resource — and it doesn’t stop enforcing between runs. The same documentation describes the enforcement directly too: manual changes made with kubectl edit, kubectl patch, or kubectl delete against a resource the controller manages “will be promptly reverted.” That’s not a bug some teams discover the hard way — it’s the mechanism working as designed. The loop doesn’t distinguish “an operator’s emergency hotfix” from “drift”; it only knows the declared state and the observed state, and it closes the gap between them every cycle.

This is where the pull-versus-push distinction stops being a preference and becomes the actual engineering argument. A conventional CI/CD pipeline pushes: a build job authenticates outward, holding credentials with enough privilege to mutate the production environment, and runs kubectl apply (or its equivalent) once, at the moment the pipeline executes. If that push succeeds, nothing watches the result afterward. If someone changes a value by hand next Tuesday, nothing notices until the next deploy happens to touch the same resource. A GitOps controller inverts the direction: no external system holds credentials to reach into the cluster, because nothing external needs to. The agent living inside the boundary only needs read access to a source outside it — a genuinely smaller, harder-to-abuse permission shape — and it doesn’t stop watching after one successful apply. It watches continuously, which is what turns “deployed” from a one-time event into an enforced, ongoing property of the system, and it’s the same shift in framing that shows up in DORA metrics: deployment frequency and change-failure-rate stop describing discrete pipeline runs and start describing a system’s continuously maintained state.
| Dimension | Push (CI deploys outward) | Pull (GitOps controller reconciles) |
|---|---|---|
| Where the credentials live | External CI system holds credentials with write access into production | No inbound credentials required; the in-cluster agent only needs read access to the source |
| Attack surface | The CI/CD system itself becomes a direct path to production — compromise the pipeline, compromise the cluster | The cluster boundary stays closed to the outside; the source repo/registry is the thing to protect |
| Drift handling | None by default — a deploy runs once, then nothing is watching | Detected and corrected automatically on the next reconciliation pass |
| What “deployed” means | A pipeline step exited 0 at a point in time | A continuously enforced property, re-verified on every interval |
| Failure recovery | A partial or failed apply can leave the cluster in a stuck intermediate state until someone reruns the pipeline | The loop retries on its own schedule until desired and observed state converge |
| Audit trail of intent | Deploy history lives in CI logs — often shorter-retention, less structured | Deploy history is the source’s own version history — commit-by-commit, already durable |
None of this makes push “wrong” — a push-based pipeline is simpler to reason about for a one-shot job, and plenty of systems don’t need continuous enforcement. But for infrastructure state that has to hold its shape over weeks and months, against dozens of engineers with cluster access, the pull-based loop’s real advantage isn’t elegance — it’s that “correct” stops being something a deploy achieves once and starts being something the system maintains on its own.
Two Readings of the Same Idea: Flux vs. Argo CD
Both major GitOps controllers implement that same reconciliation loop against the same four OpenGitOps principles, and both are Cloud Native Computing Foundation projects — but they read the underlying idea differently enough that choosing between them is a real architectural decision, not a coin flip. Flux frames itself as infrastructure for a platform team to build on: no bundled dashboard, access control deferred to whatever the Git provider already enforces (branch protection, required reviews, CODEOWNERS), and its behavior split across several purpose-built controllers — a source controller, a Kustomize controller, a Helm controller, a notification controller — that a platform team wires together. Argo CD reads the same principles as a product a developer opens directly: it ships a web UI and API server, built-in RBAC and SSO integration, and a single application-centric controller model that presents “this app’s current sync state” as a first-class object in its own interface.

| Dimension | Flux | Argo CD |
|---|---|---|
| Self-positioning | An engine a platform team builds on — no bundled UI | A product developers use directly, complete with its own UI |
| Access control | Deferred to the Git provider (branch protections, required PR review) | Built-in RBAC and SSO integration inside Argo CD itself |
| Architecture | Several specialized controllers (source, Kustomize, Helm, notification) composed together | A single application-centric controller plus API server and UI |
| Default reconciliation interval | Five minutes by default per resource, configurable via .spec.interval | Configurable, and also supports webhook-triggered syncs on top of polling |
| Drift correction | Manual kubectl edit/patch/delete changes are “promptly reverted” per Flux’s own docs | Detects drift against the declared state; automated self-healing is opt-in per application |
| Source-of-truth options | A Git repository, an S3-compatible bucket, or an OCI registry | Primarily Git repositories (plain YAML, Kustomize overlays, or Helm charts) |
Neither reading is more “correct” against the OpenGitOps principles — both satisfy declarative, versioned-and-immutable, pulled, and continuously-reconciled. The difference is where each project decided the platform’s opinions should live: inside the controller (Argo CD) or deferred to whatever the team already uses to govern the Git repository (Flux). That’s a real trade-off worth making deliberately rather than defaulting to whichever tool a tutorial happened to use.
What Git Actually Contributes (and What It Doesn’t)
It’s worth being exact about what Git itself is buying this architecture, because the honest answer is narrower than “it’s the source of truth” implies. Git contributes an audited, cryptographically verifiable, revertible history of intent. Every change to the desired state is a commit: attributable to an author, timestamped, diffable against every prior version, and — if a team enables commit signing — checkable for authenticity with a command as literal as git verify-commit, which validates a GPG or SSH signature against a specific commit object. Rolling back isn’t a special operation bolted onto the system; it’s git revert, which creates a new commit undoing a prior change without destroying the record that the mistake happened. That combination — signed, versioned, revertible, diffable — is exactly the “immutable, addressable ledger of what was supposed to happen” that a reconciliation loop needs to read from.

What Git does not contribute is easy to smuggle in by accident if you don’t separate it out deliberately. Git is not a database: there’s no query layer over the desired state it stores, no way to ask “which of my 200 services currently declare replica count greater than 3” without walking the tree structure yourself or standing up tooling on top. And Git does not detect drift, and it does not observe anything — that’s the reconciliation controller’s job entirely, the same way observing a distributed workflow is a running process’s job and not something a log of past intent can do on its own. Flux’s or Argo CD’s control loop is what compares desired state to observed state and repairs the gap; Git just sits there holding an immutable record of what the desired state was declared to be at each version. The architecture only works because those two responsibilities stay separate: Git owns immutable, versioned content — the mutable part is the live cluster, and naming which version is “current” (which branch, which tag, which commit the controller is pointed at) is itself a mutable pointer sitting on top of immutable history. Conflating “the record of intent” with “the thing enforcing that intent” is how a team ends up asking Git to do a controller’s job, and asking a controller to do an audit log’s job — and getting neither for free.
The Honest Limits: Secrets in Plaintext, and the Actual Answers
GitOps’s most-cited weakness isn’t outside criticism — it’s disclosed by one of the two reference implementations in its own documentation. Argo CD’s operator manual, current as of August 2026, states it directly: “Argo CD stores generated manifests in plaintext in its Redis cache, so injecting secrets into the manifests increases risk.” That’s not a theoretical edge case; it’s the predictable consequence of the reconciliation model itself. The controller has to render the final manifest to compare it against observed state, and if a secret value is inlined into that manifest — whether committed directly to Git or templated in at render time — it passes through that plaintext cache on every reconciliation pass. A model built around “declare the whole desired state” runs into a hard wall the moment part of that state is something that must never sit in plaintext anywhere, including in Git’s own immutable history, which by design never truly forgets a value once committed.

The documented fix isn’t “encrypt harder” inside the same flow — it’s keeping the secret’s actual value out of the GitOps loop entirely, the same anti-corruption layer discipline used to keep any trusted core decoupled from a boundary it shouldn’t fully trust. Argo CD’s own manual recommends managing secrets on the destination cluster instead of injecting them into rendered manifests, and names specific tools for doing that: Sealed Secrets, the External Secrets Operator, a Secrets Store CSI driver, or a cloud provider’s own secret operator. It’s worth being specific about how each actually avoids the plaintext-cache problem rather than treating them as interchangeable:
- Sealed Secrets (Bitnami Labs) asymmetrically encrypts a Kubernetes Secret into a
SealedSecretcustom resource that’s genuinely safe to commit to Git — even a public repository — because only the controller running inside the target cluster holds the private key needed to decrypt it. The encrypted form is what Git and Argo CD ever see. - External Secrets Operator takes the opposite shape: nothing secret is ever committed to Git at all. It synchronizes secret values live from an external system — AWS Secrets Manager, HashiCorp Vault, Google Secret Manager, Azure Key Vault — directly into a Kubernetes Secret object, so the GitOps repo only declares which external secret to fetch, never the value itself.
- Mozilla’s SOPS (Secrets OPerationS) encrypts structured files — YAML, JSON, ENV,
.ini— field by field, against AWS KMS, GCP KMS, Azure Key Vault, PGP, orage, so an encrypted file can live in Git and get decrypted just before the controller needs the plaintext, rather than the plaintext ever being the thing that’s versioned.
All three share the same underlying move: the thing GitOps declares in Git is a reference to a secret, or an encrypted form of it — never the plaintext value itself. Argo CD’s own conclusion states the goal cleanly: “Argo CD does not need to have access to the secrets, which reduces the risk of leaking them.” Neither Flux nor Argo CD claims to have solved secrets management inside the model; both explicitly punt it to tooling that operates outside the reconciliation loop’s plaintext path. Treat that punt as the honest edge of the architecture, not a gap someone forgot to close.
The Gitless Admission: What Was Load-Bearing All Along
Here’s the finding that reframes everything above it. Flux — one of the two reference implementations of GitOps — now supports what its own documentation, current as of August 2026, calls “Gitless GitOps”: pointing the reconciliation loop at an OCI-compliant container registry instead of a Git repository as the source of truth. Flux’s docs describe the shift directly: with this model, “the OCI registry becomes the unified source of truth for all configuration artifacts, SBOMs, cryptographic signatures, and app images,” and the Git server stops being a required production dependency at reconciliation time altogether. Manifests get packaged as OCI artifacts, pushed to a registry a team likely already runs for container images, and the controller pulls from there.

Read that in the context of the four OpenGitOps principles from the start of this article, and nothing about the model breaks. An OCI registry — the same packaging format behind an ordinary container image — can absolutely be declarative, versioned and immutable (image digests are content-addressed and don’t change), pulled automatically, and continuously reconciled against. What Flux’s own maintainers effectively admitted by building this is that Git-the-tool was never the irreducible ingredient — the properties Git happened to supply (an immutable, versioned, pullable store) were the requirement, and Git was simply the first store that satisfied them well enough to build the pattern around. Swap in a different store with the same properties, and the reconciliation loop doesn’t notice the difference.
That’s the transferable lesson underneath the whole article, and it’s worth carrying somewhere that has nothing to do with Kubernetes: when a pattern gets named after the specific tool that first proved it out — “GitOps,” in this case — check whether the tool’s name or the tool’s properties are doing the actual work before you assume the pattern is bound to that tool forever. Here, the properties were carrying the entire architectural claim; Git was the vehicle, not the destination. Any system that needs “declared, versioned, pulled, continuously reconciled” state — a feature-flag service, a fleet configuration manager, an edge-device provisioning system — can borrow the loop without borrowing Git specifically, exactly the way Flux’s own maintainers just did.
❓ Frequently Asked Questions
Is GitOps just CI/CD with extra steps? No — the distinction is structural, not cosmetic. CI/CD conventionally pushes a change into an environment once, at pipeline-run time, and then stops watching. GitOps runs a continuously reconciling agent inside the target environment that keeps comparing declared state to observed state on an ongoing interval — Flux’s default is five minutes — and keeps correcting drift indefinitely, not just at deploy time.
Does GitOps require Kubernetes? The pattern doesn’t, even though both reference implementations (Flux, Argo CD) grew up reconciling Kubernetes resources and that’s where the tooling is most mature. OpenGitOps’s four principles — declarative, versioned and immutable, pulled automatically, continuously reconciled — are written generically about “a system” and “the source,” not about Kubernetes specifically. What’s required is something to reconcile toward and a controller that can observe and correct its actual state.
If Flux and Argo CD both implement the same reconciliation loop, why does the choice between them matter? Because they read the same underlying principles into different opinions about where control should live. Flux stays a composable engine with no bundled UI, deferring access control entirely to the Git provider. Argo CD ships that control as a product — its own UI, its own RBAC — as a first-class part of the tool. Picking one is picking who owns the access-control decision, not picking a materially different reconciliation model.
Why can’t secrets just be committed to Git like everything else in GitOps? Because Git’s core promise — immutable, versioned history — is precisely the property that makes committing a secret dangerous: once a plaintext value is committed, it doesn’t truly leave the history even if a later commit deletes it. Argo CD’s own operator manual adds the second failure point on top: rendered manifests, including any secret values inlined into them, sit in plaintext in its Redis cache during reconciliation. The documented fix is to keep secrets out of the plaintext path entirely — encrypt them at rest (Sealed Secrets, SOPS) or fetch them live from an external store (External Secrets Operator) rather than declaring their values in Git.
What does “Gitless GitOps” actually mean, and does it contradict the name “GitOps”? It means Flux can reconcile against an OCI container registry instead of a Git repository as its source of truth, per Flux’s own documentation. It doesn’t contradict GitOps’s principles because those principles were never written about Git specifically — they’re about a store with certain properties (declarative, versioned and immutable, pullable, reconcilable). An OCI registry satisfies the same properties, which is exactly why swapping it in doesn’t break the model.
Does a GitOps controller detect infrastructure drift caused by something other than a manual kubectl command — like an autoscaler or a cloud provider’s own control plane? Yes, functionally — the controller doesn’t distinguish why observed state diverged from declared state, only that it did. Whether the divergence came from a human running kubectl edit, another automated system, or a transient failure, the next reconciliation pass compares current state against the declared version in the source and corrects whatever doesn’t match, per the same loop described in Flux’s and Argo CD’s own documentation.
📚 Further Reading
- What Is a Container? The Idea That Powers Modern Software (and AI) — the packaging unit GitOps controllers ultimately reconcile, and the same OCI image format Flux’s “Gitless GitOps” repurposes as a source of truth.
- The Agentic Development Loop, Explained for Engineers — another closed, continuously-running feedback loop worth comparing against GitOps’s reconciliation model.
- Anti-Corruption Layers: Safely Integrating Untrusted Systems — the same “keep the trusted core decoupled from what it depends on” discipline this article applies to keeping secrets out of the GitOps loop.
- Observing Distributed Workflows: How to Tell a Saga Is Healthy — another continuously-running control pattern worth comparing against GitOps’s reconciliation loop.
- DORA Metrics for AI Coding Agents: Stop the Gaming — the deployment-frequency and change-failure-rate metrics that a pull-based reconciliation model changes the shape of.
📚 Recommended Resources
Disclosure: some links below are Amazon affiliate links. If you buy through them, I earn a small commission — at no extra cost to you — which helps keep this site running.
Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation
Jez Humble & David Farley · Book · Addison-Wesley Signature Series (2010)
The book that named the discipline GitOps automates: a repeatable, low-risk deployment pipeline. Read it for the pipeline-design principles this article’s push-vs-pull comparison assumes — then see why a continuously reconciling pull-based controller takes those principles further than a one-shot pipeline ever could.
Accelerate: The Science of Lean Software and DevOps
Nicole Forsgren, Jez Humble & Gene Kim · Book · IT Revolution Press (2018)
The research behind the deployment-frequency and change-failure-rate metrics that a GitOps controller’s continuous reconciliation quietly reshapes — “deployed” stops being a one-time pipeline event and becomes an enforced, ongoing property of the system. The empirical case for why that shift matters.
Pro Git
Scott Chacon & Ben Straub · Book · 2nd edition (Apress)
The canonical reference for exactly what Git itself contributes to a GitOps setup: the immutable, versioned, signed, revertible commit history this article leans on directly in the “What Git Actually Contributes” section. It’s also free in full at git-scm.com/book under CC BY-NC-SA 3.0 — the print edition is worth it as a desk reference once GitOps has you reasoning about signed commits and git revert on a daily basis.
Also worth knowing about, not sold on Amazon: Building Git by James Coglan is a from-scratch, chapter-by-chapter walkthrough of reimplementing Git’s core object model in Ruby — the same immutable, content-addressed store that GitOps’s reconciliation loop reads from, and Flux’s “Gitless GitOps” work proves isn’t the only store that can fill that role. It’s sold ebook-only (PDF/ePub/Kindle) directly from the author’s own storefront, with no print edition and no Amazon listing, so there’s no affiliate link here — just a direct, disclosed pointer to the source.