-
Notifications
You must be signed in to change notification settings - Fork 639
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
Old helm chart releases are missing #1053
Comments
Can confirm that this is an issue, i only see version 0.29.0. Also this was also an issue in 0.28.0. Maybe this is an issue since the beginning (when we started to support Helm charts) ? |
@rooftopcellist would you mind reading over this issue and letting us know what you think? |
I have been playing around with this. It seems to be some kind of issue with chart-releaser. It will replace all entries in the index.yaml file with the one just been packed in the Makefile. If one downloads all releases and places them in the same directory when running cr index you get a complete index.yaml. I have done a workaround to resolve this for myself at https://janorn.github.io/helmrepo-awx/ https://github.com/janorn/helmrepo-awx/blob/1b7e19f88c902632d721e9112d8137ceee8018ce/index.yaml |
Perhaps it could be as simple as to copy in the index.yaml file into ./charts during the buildprocess?! Lines 352 to 375 in 1892b8f
|
Add this perhaps between package and index:
Have not been able to test this properly though. |
Perhaps @miles-w-3 can comment on this? |
I can take a more in-depth look into how chart-releaser works, but at a surface level I'd agree that it's an issue with the index yaml. I'll follow up once I've done some more research |
Looking at chart-releaser this issues stands out as interesting: |
This will download all releases before cr index is being run. fixes ansible#1053
This will download all releases before cr index is being run. fixes #1053
This didn't seem to work?! New index.yaml still only has one release. Where could one find the output from the release run? |
Looks like this is missplaced. I guess I need help placing this properly in the Makefile. Lines 357 to 358 in 17eb9cf
It only seem to pickup one tag.
|
Hi, can you re-open this issue please ? the index.yaml is still containing the latest version @rooftopcellist @miles-w-3 |
There is already a PR to fix this #1075 |
@janorn or @rooftopcellist in case you want to pick up on this, it does seem possible that we could use chart releaser to make our releases way easier, it will just take some work to figure out the following things:
There's just a lot of overhead involved in testing this on a fork, it would be nice if someone had the time to automate the creation of those requisite branches in a forked repo, and we could try using the simple chart releaser role to have it generate all of the builds. I might try to do a PoC with a dummy chart when I have the time to nail down the complete process of using it, since it's not that straightforwartd given the old tags. This may be a lot of short term work, but it would pay off in the long-term if we can just use the simple role. |
Updating to reinforce how easy this is once it's working. I have a sandbox repo with a dummy helm chart, all it took was me adding the action which calls the cr, and every time I make a change to the master branch and run the pipeline, it automatically updates the index file. The great thing is that it pulls straight from the releases, so you don't have to manage the tars. I would highly recommend adopting this.
|
Just curious what happens if you have a release without a chart? awx-operator has a lot releases without any charts. |
Well, any change to the operator resources result in a change to the helm chart when it is built. The key problem is that chart-releaser relies on the chart to be built in order to compare the "diff". One option would be to build the chart and commit it to the commit tags, but that's not ideal because you have more drift from the main branch. Another option to consider would be to spin off the helm chart to its own repo, with a "depend-bot" which builds, bumps, and commits changes based on the operator whenever they are tagged. I think this would be interesting to discuss because, unlike other helm apps, the helm chart is not core to the development of the operator and is put together as an afterthought. |
Please confirm the following
Bug Summary
With the release of the awx-operator helm chart 0.29.0 all old releases are missing from https://ansible.github.io/awx-operator/index.yaml.
AWX Operator version
0.29.0
AWX version
any
Kubernetes platform
kubernetes
Kubernetes/Platform version
any
Modifications
no
Steps to reproduce
helm repo add awx-operator https://ansible.github.io/awx-operator/
helm install my-awx-operator awx-operator/awx-operator --version 0.28.0
Expected results
helm should install version 0.28.0 of awx-operator
Actual results
Error: INSTALLATION FAILED: failed to download "awx-operator/awx-operator" at version "0.28.0"
Additional information
No response
Operator Logs
No response
The text was updated successfully, but these errors were encountered: