-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 chart v3.21.2 is broken for terraform #5162
Comments
So the entry in the helm index at https://docs.projectcalico.org/charts/index.yaml for v3.21.1 is:
And for v3.21.2 is:
I don't see any material difference between the two. The only slightly odd thing I see is that v3.21.2 is at the bottom of the list, whereas v3.21.1 is at the top. Is there any way you can confirm that that's the issue? If so, I can probably update the helm index updating tool to order the list before writing. |
To fix some issues in our release process, we made some changes to the release script which would cause the chart version to more closely match the file names of the charts we uploaded. This means that It seems that terraform expects the helm index version to match the version embedded in the chart that it pulls. This leaves us with 2 options:
Option 1 brings things back to how they were while option 2 makes our versioning a little strange (since semver denotes the version separated by a hyphen as pre-release versions), but it gives us the ability to release new helm charts separate from our normal patch releases. WDYT? |
I would prefer option 1. Maybe you should use a separate versioning for the chart? This is what most other helm charts do. |
@viceice I'm not super familiar with how helm versioning usually works, but is there a separate field that other helm charts use to denote the helm chart versions separately? I saw that there is |
Yes, the app version is usually used for the main docker image version. Eg the calico operator version. The chart version should strictly follow semver. We have a tool, renovate, which can update the app version and bump the chart version accordingly. 😉 |
I guess in the cases I am thinking about, if the app version is supposed to represent the docker image's version (in our case the operator version) and if we made a mistake in the helm chart, what field would we use to denote a new helm chart version? In this case, the change isn't in the docker image so the app version field wouldn't really be appropriate. Is there another field we could use to purely denote the chart version? |
I this case you should bump the chart version, which don't need to follow the app version |
Hmmm. I guess it's more that we haven't been using the chart version properly. It would be great though if it didn't have to divert from the Calico version for ease of use but it sounds like we don't have any other options. |
Yes, we've the same issue. Currently our chart will only published on main docker image changes, see |
@viceice I just went ahead and checked our fixes to the chart referenced in the helm index and it seems like it should work now so I'm going to close this issue. Please feel free to shout out if you're still hitting this issue. |
I'm using the terraform
helm_release
to deploy the operator:values.yaml
if update the version to v3.21.2, it will break with the error i posted below 😕
Originally posted by @viceice in #5143 (comment)
The text was updated successfully, but these errors were encountered: