Skip to content
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

Add workaround to populate index.yaml #1065

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

janorn
Copy link
Contributor

@janorn janorn commented Sep 28, 2022

This will download all releases before cr index is being run. fixes #1053

SUMMARY
ISSUE TYPE
  • Bug, Docs Fix or other nominal change
ADDITIONAL INFORMATION
# This step to workaround issues with old releases being dropped.
== CHART FETCH previous releases ==
# Download all old releases
cd .cr-release-packages;\
for tag in 0.6.0 0.7.0 0.8.0 0.9.0 0.10.0 0.11.0 0.12.0 0.13.0 0.14.0 0.15.0 0.16.0 0.16.1 0.17.0 0.18.0 0.19.0 0.20.0 0.20.1 0.20.2 0.21.0 0.22.0 0.23.0 0.24.0 0.25.0 0.26.0 0.27.0 0.28.0 0.29.0; do\
        dl_url="https://github.com/${CHART_OWNER}/${CHART_REPO}/releases/download/${tag}/${CHART_REPO}-${tag}.tgz";\
        curl -RLOs -z "${CHART_REPO}-${tag}.tgz" --fail ${dl_url};\
        result=$?;\
        if [ ${result} -eq 0 ]; then\
                echo "Downloaded $dl_url";\
        fi;\
done
Downloaded https://github.com/ansible/awx-operator/releases/download/0.21.0/awx-operator-0.21.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.22.0/awx-operator-0.22.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.23.0/awx-operator-0.23.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.24.0/awx-operator-0.24.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.25.0/awx-operator-0.25.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.26.0/awx-operator-0.26.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.27.0/awx-operator-0.27.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.28.0/awx-operator-0.28.0.tgz
Downloaded https://github.com/ansible/awx-operator/releases/download/0.29.0/awx-operator-0.29.0.tgz
== CHART RELEASER (index) ==

This will download all releases before cr index is being run.
fixes ansible#1053
@janorn
Copy link
Contributor Author

janorn commented Sep 28, 2022

Based on this script:
colearendt/couchdb-helm@cab5c43

@rooftopcellist
Copy link
Member

This approach seems reasonable. @miles-w-3 what do you think?

@miles-w-3
Copy link
Contributor

I think this is a fine solution given that this is a limitation with chart-releaser, as mentioned in the docs for the build process helm/chart-releaser#122. Short of finding or building a chart releasing process that builds upon existing releases, this seems like a good way to tackle it without too much more work

@rooftopcellist rooftopcellist merged commit a1e289e into ansible:devel Sep 29, 2022
@janorn janorn deleted the janorn-patch-1 branch October 6, 2022 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Old helm chart releases are missing
3 participants