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.
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.
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
As long as your OCI store is versioned and immutable it supports GitOps. Gitless GitOps is one of the things we had in mind when we wrote that principle.
Versioned and Immutable
Desired state is stored in a way that enforces immutability, versioning and retains a complete version history.
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. 🙂
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)
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".
Interesting critique. The argument is basically that using Argo CD in a fully GitOps compliant way requires effort and configuration. That's true. In my view, a big part of the appeal of Argo CD is that it's flexible. Most teams aren't actually ready for GitOps, they need manual sync. We see that as part of the adoption curve, they move to git as source of truth, when they're ready, they move to automated sync.
Almost everyone blocks app creation in the UI as soon as they've figured out the core concepts. It's really there as an onboarding and training tool.
FWIW in Argo CD 4.0 we're planning to make autosync the default.
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
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.
Honestly, using the helm functions that query the cluster and are not supported in ArgoCD are bad practices anyway in my opinion. The lookup just looks things up at deploy-time, and can lead to broken deployments when things change (been there) with no clear indication what exactly went wrong if you're using a helm chart you're not maintaining yourself. Querying API versions - the most useful/sensible part - should work just fine, ArgoCD injects them with --api-versions.
Helm itself is already the mess, to be real. No real parsing, just straight text templating. I wish people would use and stick to kustomize, not everything needs "yet another abstraction".
Querying the live cluster to render the declarative resources that get deployed into it... Do you hear yourself?
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 :)
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.
In a purely theoretical and perfect world, sure - but there's a lot of messy stuff out-there - and manual interventions are often needed, especially in development environments. Telling a dev they need to make a branch and open a PR and do something they can do with 2 clicks in the ArgoCD UI they're staring at anyway is a way nicer developer experience, and you'll get less pushback from a "this tool is shit" vs convincing them gitops is a good idea. Pure gitops is not a good experience for that, and ArgoCD offers insight in the state of a deployment in a single glance.
ArgoCD goes a bit too far with stuff like creating apps etc from the UI - which is indeed a bad idea - but I think that easy to start with default is what led to its widespread adoption, and at least it does allow you to completely lock it down. Not a huge fan of it's own RBAC, but it gets the job done.
4
u/Which_Ad8594 4d 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.
5
u/sokjon 4d 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/nrmitchi 4d ago
I didn’t know we were applying the no-true-scotsman fallacy to tooling now.
2
u/reliant-labs 4d 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
2
u/sogun123 2d 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".
2
u/todaywasawesome Argo Maintainer 1d ago
Interesting critique. The argument is basically that using Argo CD in a fully GitOps compliant way requires effort and configuration. That's true. In my view, a big part of the appeal of Argo CD is that it's flexible. Most teams aren't actually ready for GitOps, they need manual sync. We see that as part of the adoption curve, they move to git as source of truth, when they're ready, they move to automated sync.
Almost everyone blocks app creation in the UI as soon as they've figured out the core concepts. It's really there as an onboarding and training tool.
FWIW in Argo CD 4.0 we're planning to make autosync the default.
2
u/techhelper1 3d ago
This is an AI article.
1
u/d32dasd 4d 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/HayabusaJack 4d 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/evergreen-spacecat 2d 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.
1
u/koffiezet 1d ago
In a purely theoretical and perfect world, sure - but there's a lot of messy stuff out-there - and manual interventions are often needed, especially in development environments. Telling a dev they need to make a branch and open a PR and do something they can do with 2 clicks in the ArgoCD UI they're staring at anyway is a way nicer developer experience, and you'll get less pushback from a "this tool is shit" vs convincing them gitops is a good idea. Pure gitops is not a good experience for that, and ArgoCD offers insight in the state of a deployment in a single glance.
ArgoCD goes a bit too far with stuff like creating apps etc from the UI - which is indeed a bad idea - but I think that easy to start with default is what led to its widespread adoption, and at least it does allow you to completely lock it down. Not a huge fan of it's own RBAC, but it gets the job done.
0
u/tolmanbriger 4d ago
Interesting