-
Notifications
You must be signed in to change notification settings - Fork 123
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
Helm next release is not picking the latest version #599
Comments
I stumbled upon an issue that explains it: helm/helm#2797 (comment) By default, Helm will hide all releases that have a version number which matches a prerelease pattern (such as So without the
And now with the
We can see here also that This probably means that we shouldn't separate stable and beta releases since Helm protects users from picking betas by default. @bradfordcp, did you know about that Helm feature? |
That's an interesting find @adejanovski , thanks for getting to the details of it. I have to say I'm a bit torn... On one hand it simplifies things for us if we consolidate to a single release channel and we play by helms "rules" so to speak - which I do think is important. On the other hand, it would seem that not a one of us knew about this feature of helm so I worry that we represent a decent chunk of users who also wouldn't know it's a thing and would never find our "next" releases. We'd have to document it well. Which maybe is fine, the majority of users would be using stable anyhow. From a development perspective it gives us what we wanted, the ability to move forward without hurting the stable releases. But, I'm curious to hear what @bradfordcp thinks about from the user perspective. |
Prior to Helm 3.0, the Helm project itself maintained 3rd party charts. It had stable and incubator chart repos; so there is a precedent for multiple chart repos. I see pros and cons of each way. I do agree with @jdonenine that a lot of users likely won't be aware of this behavior. |
If I understand the issue correctly, even if we put our charts in a separate Helm repo we still have to use the If our repo only had |
My understanding is that Helm would choose 1.0.5-3. |
Correct
Right. If we keep on putting prereleases in the next repo though, folks will get stuck at 1.0.5 unless they are aware of that flag. Since there's no versioning that would allow us to put version numbers that would be consistent with the stable repo versions while not being prereleases, I'd be in favor of dropping the next repo and documenting this appropriately. In any case, I think that installing prereleases should not be the norm and any user doing it would have to be fully aware of how to do it (it would probably just be about testing new stuff). |
I do think there are plenty of situations in which folks will want to use charts that we are currently storing in the I think I would prefer different version numbers in |
Well, you have to opt in either way since you need to be aware of the existence of the next repo 🙂 that means you're actively installing k8ssandra with some special parameters Alternatively, if we choose to stick with the next repo, we could keep the chart version to x.x.x-SNAPSHOT but when publishing to the next repo we could switch it to I'm still keen to use a single repo and use built in feature from Helm to handle prereleases, but would like to hear from the rest of the team on this matter. |
I am 👍🏻 on a solution that avoids doing an update of the Helm chart upon merge. We move too fast to synchronize that among team members. Looking to compare with other standards, so we aren't creating our own path, if not needed. This is an explanation of how Rancher is aligning app and chart versions, for |
@jeffbanks Thanks for the Rancher reference. Very insightful! |
As discussed during our meeting we will remove the Next repo and keep a single Helm repo which will contain both the stable releases and pre-releases. |
Bug Report
Describe the bug
Helm ignores version numbers that use a
-****
suffix.To Reproduce
Steps to reproduce the behavior:
helm ls -A
k8ssandra-1.0.5
despite the existence of1.0.5-3
and1.1.0-20210329062259-fe6b1cc1
in the indexhelm search repo k8ssandra-next -l |grep "k8ssandra-next/k8ssandra "
1.0.5
Expected behavior
The latest version should be
1.1.0-20210329062259-fe6b1cc1
, which should be the one picked by Helm when performing the installation.Additional context
Since Helm can't support such version numbers, I guess the best path forward should be to use version numbers that will match Helm's requirements (although they don't seem to be properly documented). Something such as
1.1.0.20210329062259
would probably work better and should be tested.The text was updated successfully, but these errors were encountered: