Recommendations for minimal dehydration CI for generating OCIRepository CRs? #6053
|
We really would like to switch to "gitless GitOps" as demonstrated in the Flux D2 reference architecture. But, adopting this adds a working CI as dependence to the controllability of the GitOps stack – without it, the desired state of the clusters cannot be modified. So what is in use, what is recommended? |
Replies: 2 comments 2 replies
|
You don't need to dehydrate anything, and I don't quite understand what do you mean by that, to be honest. If you mean running Using OCIRepository does not mean stop using kustomize and helm. It just means you run That's it. The Flux GitRepository API pulls those files from a Git server. The Flux OCIRepository API pulls them from a container registry. You can run |
|
@matheuscscp this question arose from this suggestion, with the context of remote bases in kustomizations, AFAIU showing the "right way to use them" by decoupling the localization phase (ran in CI at OCI image build time) from the dehydration phase (ran in the GOTK kustomization controller on deployment). That's why I wrote about dehydration above. Apart from that, yes, sure, we have seen As I'm sure I'm not the first one thinking in this direction, I'm asking for something really lightweight – do you really need templates, triggers, tasks, and pipelines for that? . |
You don't need to dehydrate anything, and I don't quite understand what do you mean by that, to be honest. If you mean running
kustomize buildorhelm template, no, you don't. kustomize-controller and helm-controller do that for you, it's their whole point.Using OCIRepository does not mean stop using kustomize and helm.
It just means you run
flux push artifactsomewhere pointing it to two things: the local path where your YAML files are, and the container registry where to push.That's it. The Flux GitRepository API pulls those files from a Git server. The Flux OCIRepository API pulls them from a container registry.
You can run
flux push artifactwherever you want. People normally do it …