r/GitOps • • 2d ago

Argo Is Not GitOps

https://nikogura.com/blog/argo-is-not-gitops/
17 Upvotes

18 comments sorted by

4

u/Which_Ad8594 2d ago

Interesting, I was reading recently about gitops promoter, and trying to wrap my head around the problem it was trying to solve. Seems like you described the problem well with being able to see the diff, albeit after it’s applied to a dev cluster. But now you’re just using git branches as a state DB, which was probably just fine in the Argo UI…

To your point about “not gitops” I’d assume that also applies to any tool that uses any type of dynamic generation of resources (kustomize, helm, jsonnet…) it’s all just CD driven by git.

1

u/csgeek-coder 18h ago

I don't think that's as much of an issues as the fact that you can have changes in argo that are not reflected in git. Git is supposed to be the source of truth. Git == state. Argo can be configured where git = state unless we used patterns A, B and C that all break this.

Generating a proper Diff IS very useful for the developer reviewing the merge request but I don't think it breaks git ops.

5

u/sokjon 2d ago

A major version release of Argo very well could be by the same argument: make the default settings match the desired definition of GitOps.

It’s kind of like arguing that git isn’t distributed because “git init” by default creates a local repository and never pushes to a remote.

Thanks for the article. It definitely promotes fixing some issues and impediments that Argo can address in the future or motivate new/better tools.

2

u/reliant-labs 2d ago

Gitops is so close to the right direction but I think gitless is better. Gitops starts to become awkward when dealing with environment promotion or deploying single services in a hot fix vs the whole stack. It’s still possible but pushing rendered configs to an OCI registry plus an external version ledger is how we’ve solved this

1

u/blazmrak 1d ago

what is the difference? One pulls config from git, while the other pulls config from OCI Reg.

1

u/strofcon 21h ago

Functionally, not much difference. At large enough deployment footprint though it can become burdensome to handle the git machinations on every reconcile. OCI from ECR or similar is colocated and a clean immutable http request + no-op render.

At small to large scale, no real value to one over the other. At giant scale, git is expensive. 🙂

1

u/reliant-labs 21h ago

it's still possible to create a "like" setup, especially if using the rendered manifests pattern with a separate repo, but I just feel it's a bit more awkward. a few reasons:

* OCI can just be a glob of configs, don't need to worry much about which paths to use, or which branches
* Can have a snapshot per env, whereas in git you would need to either again separate by path/folder or branch
* We found that separating the "ledger" from the config snapshot is nice as well, ie: from a single code change in the pre-rendered config repo (or where the code lives), we can update all the configs for staging, preprod, prod, etc. In a git environment, doing this might immediately trigger release of all envs at the same time, or you need to stage these updates. with a separate ledger you can update one at a time. This is less of an OCI thing, and more of separating out the version system.
* It's a cleaner mental model for me, and also more easily allows splitting services into separate versioned artifacts
* Git supports signed commits and tags. With OCI, CI can sign the rendered bundle after templating and validation, attach build provenance to its digest, and have Flux verify the bundle’s signature before consuming it. A nice to have when using a renderer or generator sits between the source commit and what gets pushed.
* Clusters can pull configs through the same registry infrastructure and cloud IAM mechanisms used for images

If not using the rendered manifests pattern, then you're stuck with having configs that are not versioned at the same atomic commit as the code they came with (especially if using generators, or wanting to do per env stuff)

2

u/techhelper1 1d ago

This is an AI article.

1

u/nrmitchi 2d ago

I didn’t know we were applying the no-true-scotsman fallacy to tooling now.

2

u/Fatali 2d ago

The AI that wrote it certainly has thoughts....

1

u/d32dasd 2d ago

As a helm app maintainer, I have no love for argo. It enders the chart without querying the cluster, so all the usual helm functions are not available and it's a mess. The code ends up moving to the controller making things more difficult

1

u/strofcon 21h ago

Yea I do wish there was more of the fancy bits of helm kept available, but I think it moves the deployment to the opposite pole from “gitops” too, in most people’s minds.

There’s a strong case to make for it, just moves away from “purely deterministic / invariant configs”.

I mostly find myself dealing with upstream charts anyway so it’s not something that’s worth retrofitting in my case, but helm for internal and more sophisticated deployment patterns makes sense I think.

1

u/HayabusaJack 2d ago

It is an interesting read, but Argo is (or at least was) the default in Openshift. I could rip it out and put in Flex but that’s something to consider as well.

For my homelab, I’ll set up a second set of Kubernetes clusters and try out flex :)

1

u/gnunn1 1d ago

Do you mean Flux?

1

u/HayabusaJack 1d ago

Hah, sorry yea. My bad.

1

u/sogun123 12h ago

I don't agree with the reasonjng - sync and refesh buttons are not problem. They restart actions against source of truth. I seen way bigger problem in those "create application" or "delete a thing" buttons - those go against "versioned, auditable source of truth" principle of gitops. For me it doesn't even matter if we pull from git or oci or bucket. Nor what kind of resources do we reoncile. ApplicationSet is fine - it is just one more resource we model and there is some controller we configure to dobits job. What seems not gitops to me are tools that use git repo as a storage to dump their generated manifests into without human interacting with git itself. Original authors think about GitOps more like "Pull request ops".

1

u/evergreen-spacecat 6h ago

It’s the same argument that no languages except Haskell is purely functional. Sure thing but Argo tries to solve a real problem where some operations are inherently imperative while keeping a decent record of the declarative state in git.

0

u/tolmanbriger 2d ago

Interesting