Skip to content

Allow publishing a release without a solr chart to the OCI registry - #925

Closed
HoustonPutman wants to merge 1 commit into
apache:mainfrom
HoustonPutman:publish-helm-oci-optional-solr
Closed

HoustonPutman wants to merge 1 commit into
apache:mainfrom
HoustonPutman:publish-helm-oci-optional-solr

Conversation

@HoustonPutman

Copy link
Copy Markdown
Contributor

The solr Helm chart only exists from v0.4.0 on. v0.3.0 has only the solr-operator chart, so the "Publish Helm Charts to OCI Registry" workflow couldn't publish it, because it required both chart URLs. This is the last archived release to backfill into the OCI registry for apache/solr-site#260. v0.4.0–v0.9.1 are already published.

  • The solr-chart-url input is now optional. When it's empty, only the solr-operator chart is validated, downloaded, verified (SHA512 and GPG), pushed and pulled back.
  • The run summary says when a release has no solr chart, and only shows the solr install command when there is one.
  • With both URLs set, the workflow behaves exactly as before.
  • dev-docs/helm-repository.md says to leave solr-chart-url empty for v0.3.0. It also says the pre-Apache v0.2.x charts aren't published to OCI and aren't in the index: they were never Apache releases, and have no archive.apache.org copy to verify against.

Testing

Each step's script passes bash -n. Run locally:

  • Validate input URLs: accepts an operator-only v0.3.0 and a two-chart v0.9.1, and still rejects a non-ASF host for the solr chart.
  • Extract chart versions: handles an operator-only release, and still catches a chart whose version doesn't match its filename.
  • Summary: renders correctly for a dry run and a real run without a solr chart.

The v0.3.0 dry run and publish will be the end-to-end test.

The solr Helm chart only exists from v0.4.0 on, so v0.3.0, which only
has the solr-operator chart, could not be published with the "Publish
Helm Charts to OCI Registry" workflow. Its solr-chart-url input is now
optional. When it is empty, only the solr-operator chart is downloaded,
verified, pushed and pulled back.
@HoustonPutman

Copy link
Copy Markdown
Contributor Author

This was used to build the 0.3.0 chart, but it doesn't need to be merged now, since we won't need to rebuild the chart.

@HoustonPutman
HoustonPutman deleted the publish-helm-oci-optional-solr branch December 1, 2026 23:49
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.

2 participants