-
Notifications
You must be signed in to change notification settings - Fork 0
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
[proposal] Add CRDs from external helm chart #21
Comments
Oh that is a very good idea! Thanks for this proposal. I actually know how to do that. :D 💯 |
In terms of cli it would be smth like
|
Yep, pretty much. Also, flux has some libraries in it's publish |
i just assumed helm libs itself should support oci repos, without even going to any 3rd party. |
That's true. I thought you might want to do something like a helm source which would require credentials and would use helm package or something to extract / fetch the helm resources. |
The difficulty here will be tag discovery. Since that is broken in Helm for OCI repositories. I'll see what I can do about it. Like, I can use oras or containerregistry or whatever to see which is the latest tag. And then hope it's a chart file. :D |
First, what do you mean broken and 2nd - why do you mention Could you plz provide more details ? |
I'm not saying |
sorry, i don't understand :( |
helm should already support semantic ranges for OCI, so i still not understanding the issue. |
Can it list tags for a specific chart? I need to be able to track which is the latest version to reconcile new versions. If a new versions is available, I'm installing it. In order to do that, I'm asking for a list of versions and see if the latest version is greater than the current reconciled versions given a semver constraint. So like, only patch versions, or, major, or minor. |
For example:
Returns
So I can't use helm to discover tags. But that's fine.. I can use oras for example, or anything else that deals with OCI registries. |
this is a very bad idea imo. |
this is incorrect syntax, this should work
|
Did you try it? :) It does not work. :)
Yes, this is exactly what I just wrote. You define a semver. If the semver allows it it will update. If it doesn't it won't. :) |
i am AFK, command lines writing by memory. |
I'm not looking at latest. I'm looking for new versions that are allowed by a set semver. |
since i am afk - cant suggest smth in particular but let give you an example. I was using helm library chart as a dependency for my charts. That helm library chart was published to github packages, i.e OCi registry. I was declaring the dependency with semantic version, like So, every time i was running |
Aha. Interesting. I'll take a look at that code section how they circumvent the search problem. Thanks for the pointer. |
So dep update basically downloads everything again into the local registry and THEN selects the latest version using the semver. I could use something similar internally, but I don't require this level of engagement. I literally just need some tags from the OCI registry and that's it. :) For plain HTTP and use helm search. edit: technically it only downloads the index file. not the actual whole thing. |
for plain HTTP it downloads index.yaml from the repo. for OCI it queries tags via OCI registry API. |
Yep: tags, err := c.RegistryClient.Tags(strings.TrimPrefix(ref, fmt.Sprintf("%s://", registry.OCIScheme))) I guess I could use the registry client I already construct. Hopefully that works. |
The latest release should contain this feature. v0.5.0. |
great. |
Maybe worth mentioning here ? |
Thanks. I'll take a look at it. 😊 |
Heh, interesting answer on that issue.... |
which one ? |
There is only one. |
This is now done. Please feel free to re-open or create a new issue if problems arise. :) 🙇 |
Hello
Wdyt about extending this controller with possibility to extract CRDs from published Helm charts repositories. (both OCI and plain old HTTP).
Since Helm has old issue that CRDs are not automatically upgraded but the CRDs are still packaged within Helm charts, this application could address this gap.
The text was updated successfully, but these errors were encountered: