Add tentative script to regenerate the Helm index #3515
+133
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.orgas well asarchive.apache.org. The logic is as follows:downloads.a.oandarchive.a.oare downloaded locally so that the index is fully rebuilt across all versions.archive.apache.orgbut not ondownloads.apache.orgis replaced by an absolute URL toarchive.apache.org. That way, previous releases are always accessible.downloads.apache.orgis 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.oafter 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
CHANGELOG.md(if needed)site/content/in-dev/unreleased(if needed)