pingtimeout opened a new pull request, #3515:
URL: https://github.com/apache/polaris/pull/3515
The current release workflows force a regeneration of the Helm index after
the old (unmaintained) releases are removed from the Apache dist release SVN
server. This causes previous releases to be removed from the Helm index
(#3500).
This commit is a tentative fix that re-generates a Helm index across
`downloads.apache.org` as well as `archive.apache.org`. The logic is as
follows:
1. All Helm charts from `downloads.a.o` and `archive.a.o` are downloaded
locally so that the index is fully rebuilt across all versions.
2. The URL of any Helm chart that is located on `archive.apache.org` but not
on `downloads.apache.org` is replaced by an absolute URL to
`archive.apache.org`. That way, previous releases are always accessible.
3. The URL of any Helm chart that is located on `downloads.apache.org` is
replaced by a relative path `${version}/polaris-${version}.tgz`.
That way, the Helm index can be rebuild before a release vote is started, as
the relative path will work regardless of the location being used (dist dev
during RC vote, dist release and `downloads.a.o` after vote).
This PR is a draft to show how a solution could be implemented and to offer
a path forward to work around #3500 until a permanent fix is added to the
release workflows. Most likely the current code will be split and integrated
into the pre-vote release workflow.
## Checklist
- [ ] ๐ก๏ธ Don't disclose security issues! (contact [email protected])
- [x] ๐ Clearly explained why the changes are needed, or linked related
issues: Fixes #
- [x] ๐งช Added/updated tests with good coverage, or manually tested (and
explained how)
- [x] ๐ก Added comments for complex logic
- [ ] ๐งพ Updated `CHANGELOG.md` (if needed)
- [ ] ๐ Updated documentation in `site/content/in-dev/unreleased` (if needed)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]