Repository navigation
Serve the Solr Operator Helm repository index from the site - #260
Merged
Merged
Conversation
The Solr Operator Helm charts are moving to OCI artifacts on ghcr.io. Instead of redirecting /charts to nightlies.apache.org, serve the Helm repository index from content/charts/index.yaml. Its entries point at the OCI copies of the charts, so no tarballs are hosted here. Requests for the old relative tarball urls (/charts/*.tgz) still redirect to nightlies, for clients with a cached copy of an older index.
A verbatim copy of https://nightlies.apache.org/solr/release/helm-charts/index.yaml, which /charts redirected to until now. Its relative tarball urls keep resolving through the /charts/*.tgz redirect to nightlies.
HoustonPutman
force-pushed
the
helm-oci-index
branch
from
December 1, 2026 21:29
1b21473 to
a661d01
Compare
Every entry's url now points at its OCI copy, oci://ghcr.io/apache/solr-operator/helm/<chart>:<version>, instead of a relative tarball url. Everything else, including the digests and created timestamps, is unchanged, since the OCI copies are byte-identical to the released charts. The file is written the way update_helm_index.sh from the solr-operator repository writes it, with yq, so later updates only show real changes. That is also why 16 long strings that Helm had wrapped at 80 columns are now on one line each, with the same values. This assumes every chart version in the index has been published to ghcr.io.
HoustonPutman
force-pushed
the
helm-oci-index
branch
from
December 1, 2026 21:30
a661d01 to
9d099b1
Compare
The Helm repository index is no longer signed, so there is no index.yaml.asc or index.yaml.sha512 to serve. Helm never checks a signature on a repository index; the charts' own .prov files, pushed to ghcr.io with the charts, are what 'helm install --verify' checks.
The artifacthub.io/changes changelogs of the v0.7.0 and v0.8.1 solr-operator charts each had a line ending in whitespace. A YAML block scalar cannot hold that, so they were the only changelogs in the index written as long double-quoted strings. With the trailing whitespace removed, they are written as blocks like every other changelog. This only changes the index's copy of the chart metadata. The released charts, and so the digests, are unchanged. The solr-operator lint now checks the charts' Chart.yaml files for trailing whitespace, so it does not come back with new releases.
The v0.2.6 to v0.2.8 solr-operator charts were released before the project was donated to Apache. They were never Apache releases and have no archive.apache.org copy to verify them against, so they are not published to the OCI registry, and are dropped from the index. Clients with a cached copy of the old index can still download them, through the /charts/*.tgz redirect to nightlies.apache.org.
Artifact Hub reads artifacthub-repo.yml from the root of the Helm repository, https://solr.apache.org/charts. Until now /charts redirected to nightlies.apache.org, which served it. Now that the site serves the Helm repository itself, it serves this file too, with the same repository ID and owners as the copy on nightlies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Companion to apache/solr-operator#900.
The Solr Operator Helm charts are moving to OCI artifacts on
ghcr.io/apache/solr-operator/helm. Instead of redirecting/chartsto nightlies.apache.org, this serves the Helm repository index fromcontent/charts/index.yaml. Its entries point at the OCI copies of the charts (oci://ghcr.io/apache/solr-operator/helm/<chart>:<version>), so no tarballs are hosted on the site.helm repo add apache-solr https://solr.apache.org/chartskeeps working; Helm 3.8+ is required, and Helm 3.8.2 / 3.19.0 / 4.3.1 have been tested against such an index.Changes
htaccess.template/chartsredirect to nightlies./charts/index.yamla shortCache-Control, so a new release shows up soon after publishing./charts/*.tgz[.prov|.asc|.sha512]) to nightlies, for clients with a cached older index.content/charts/artifacthub-repo.yml: the Artifact Hub repository metadata (repository ID and owners), which Artifact Hub reads from the root of the Helm repository. Nightlies used to serve it through the old/chartsredirect.content/pages/operator/resources.md: adds install instructions for the Helm repository and for the directoci://route.Draft: before this can merge
content/charts/index.yaml. It's seeded from the current nightlies index (solr-operator0.3.0–0.9.1,solr0.4.0–0.9.1, after removing 0.2.x), with every entry's url pointing atoci://ghcr.io/apache/solr-operator/helm/<chart>:<version>. Digests,createdtimestamps and all other metadata are unchanged.solr-operatorandsolr0.4.0–0.9.1 to ghcr.io.solr-operator0.3.0 to ghcr.io, using the workflow change in Allow publishing a release without a solr chart to the OCI registry solr-operator#925. That release has nosolrchart. Every entry in the index is now on ghcr.io.solr-operator0.2.6–0.2.8 entries. They were never Apache releases, so they aren't published to ghcr.io. Clients with a cached old index still reach them through the/charts/*.tgzredirect to nightlies.The index isn't signed. Helm never checks a signature on a repository index. What
helm install --verifychecks is each chart's.provfile, which is pushed to ghcr.io with the chart.