-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Allow OCIRepository
to be used instead of GitRepository
for chart.sourceRef
#616
Comments
See We do at present not support building charts from |
@hiddeco This is the reason that I opened the issue: I can't just easily replace GitRepository with OCIRepository for Helm. |
You need to replace it with |
IMO |
But I don't want to use I don't understand why you force me to create Helm repository and do separate artifacts for each Helm chart when I can have monorepo currently and all I would need is simple change from |
@dex4er we'll discuss this feature request at the next public dev meeting and we'll get back to you afterwords. |
OCIRepository
to be used instead of GitRepository
for chart.sourceRef
@stefanprodan Are you planning to start working on this feature? We have a very similar use case, we want to migrate from We can't use I can try helping with the implementation, just let me know if the proposal is correct :) |
I am in the process of fleshing out an RFC proposing to consolidate the different OCI API kinds. I'll very likely put up a PR in the flux2 repo next week. |
@makkes @stefanprodan Any news on this topic? |
Sorry to hassle you guys, but any idea where this sits in the roadmap @makkes @stefanprodan ? |
My proposal is to use OCIRepository to fetch Helm charts from a container registry, which is very diffrent to this proposal, where an OCI artifact has many chart sources that Flux needs to build. Helm charts are meant to be packaged, versioned and pushed as a stand alone artifact to some repository with |
@stefanprodan I think I don't understand. Currently, OCIRepository might be used as a source for Flux's Kustomization and it might contain all different types of files, not just Kubernetes manifests: Helm charts too. Is there any technical limitation as to why it can't be used by Kustomizations and not by HelmReleases? Especially, there is already GitRepository and it can be used as a source for HelmReleases already. Additional context: I have a Helm charts with Karpenter's templates and provisioners. I don't need any versioning besides the "latest" tag. It is not a generic chart and each cluster (environment) uses a separate variant of the chart with the proper Karpenter's configuration. I think it will be the same with configs for cert-manager and Istio in future. The Helm charts are used because I need more advanced templating than provided by Kustomization (ie. base64 function). All I need is literally a single OCI artifact per cluster with multiple charts inside: as I already have single git repository for all Kustomizations too. |
I use Helm charts from Git repository like:
I don't see any option to use it here an OCIRepository instead. I'm not quite sure if using HelmRepository with
url: oci://
is a good alternative: I have a single artifact for a whole tree and I would like to avoid using multiplesourceRef
s and multipleflux push
commands if possible.The text was updated successfully, but these errors were encountered: