-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support version ranges in Helm Chart.yaml files in helmv3 manager #8212
Comments
Can you please provide minmal reproduction repo ? What i can see is, that helmv3 manager uses semver versioning by default, so it should support some ranges out of the box. The helmv3 manager also supports |
I thought our |
Thank you for the swift response! I've created a minimal reproduction repo for "range" support here: https://github.com/patrickhuy/renovate-helm-version-ranges
I'm not sure what kind of ranges helm supports, the helm documentation seems to refer to a semver spefication: https://helm.sh/docs/chart_best_practices/dependencies/ - I've mostly encountered |
@patrickhuy What are you expecting to happen on your sample repo? lock file maintenance should work even if some deps are unsupported but need to be enabled manually. |
In the sample repo I would expect |
Seems very similar to npm syntax for ranges, however one key difference is that go/helm treats |
@patrickhuy you can enable lockfile maintenance to update the chart.lock to latest versions matching the range. For bumping the major you can maybe reuse npm versioning assigned via package rule. If that works we can maybe easily add a new helm versioning based on npm versioning |
@viceice I was not aware that I could change the version matching, very cool that it's possible! I enabled it and it seems to work very well https://github.com/patrickhuy/renovate-helm-version-ranges/blob/main/renovate.json! Thanks a lot! A specific "helm" versioning would be ideal. |
Thank you for providing a reproduction! 🎉 🚀 The Renovate team will take a look at the reproduction repository. Once we confirm the provided repository reproduces the problem, the label will be changed to |
I've labeled this |
FYI, Helm’s version range syntax is described here: https://github.com/Masterminds/semver#checking-version-constraints |
So helm is following semver v2 spec, so we should be able to use our semver versioning? |
What would you like Renovate to be able to do?
The renovate helmv3 manager (added in #5450) currently does not support version ranges.
Maintaining a Chart.lock file - and potentially specifying a version range in the
Chart.yaml
file seems common practice right now.It would therefore be great if renovate could adhere to a specification of
rangeStrategy
for helm chart depedencies.The text was updated successfully, but these errors were encountered: