Repository navigation
chore: fix the default version on Artifact Hub and enrich the registry listings - #416
alexey-milovidov wants to merge 3 commits into
Conversation
|
Workflow [PR], commit [f6117b6] Summary: ❌
Code ReviewResult: ✅ No issues found What changed: Adds Artifact Hub ignore rules so per-commit prerelease charts are not indexed as the latest release. It also enriches both Helm charts with READMEs and registry metadata, and improves the OperatorHub display name, keywords, description, features, and example configuration. No issues found. The metadata is consistent with the currently served Investigation: 8/13 rounds, 55 tool calls. |
There was a problem hiding this comment.
Auto-approved by the AI review gate on 6b49ad4. Details in the approver's comment on this pull request.
AI review gate — auto-approved
History (latest 5 heads, newest first)
|
|
Two notes for the reviewers. OpenShift community catalog. I submitted the 0.0.8 bundle to the OpenShift community catalog: redhat-openshift-ecosystem/community-operators-prod#12156. Until now only the Altinity operator (the
A follow-up is needed in this repository: CI. |
Charts built from every commit on main are pushed to the same OCI repositories as releases. Artifact Hub picks the latest version by semver precedence, so both packages show a build such as 0.0.9-53.9a2606f, and not the 0.0.8 release, as the default version. Ignore versions with a pre-release part in the Artifact Hub repository metadata. The charts are still pushed to the registry as before.
The Artifact Hub pages of both charts are empty: the charts have no README, no license, no links and no CRD information. Add a README to each chart, and add sources, more keywords, and the Artifact Hub annotations for the license, category, links, operator capabilities, CRDs with examples, and cross-recommendations between the two charts.
Use "ClickHouse Operator" as the display name, not the package name, add keywords, and extend the description with the features and a getting started example, because the description is the body of the OperatorHub page.
6b49ad4 to
f6117b6
Compare
AI review gate — Human approval in place of AI reviewApproved on the head commit by GrigoryPervakov (write access, not the author), standing in for the AI review:
What to do:
Evaluated at |
Why
The listings of the operator in the public registries have a few defects that make it look unfinished to someone who finds it there.
Artifact Hub (operator chart, cluster chart):
0.0.9-53.9a2606fat the moment) instead of the0.0.8release.release-main.ymlpushes a chart for every commit onmainto the same OCI repositories as the releases, and Artifact Hub picks the latest version by plain semver precedence, so0.0.9-53.…wins over0.0.8. The install command on the page therefore points at a development build, and the version list contains about 150 such builds.officialstatus of Artifact Hub requires every package to provide a README, so it can't be requested yet.OperatorHub: the display name is the package name
clickhouse-operator, there are two keywords, and the description, which is the body of the page, is two sentences long.What
.artifacthub/*/artifacthub-repo.yml: ignore versions with a pre-release part. The charts are still pushed to the registry as before; only Artifact Hub stops indexing them. The pattern also covers the older0.0.5-18f10eaform of per-commit versions.dist/chartanddist/chart-cluster: add aREADME.mdto each chart, and addsources, more keywords and the Artifact Hub annotations: license, category, links, operator capabilities, CRDs with examples, and recommendations that link the two charts to each other.kubebuildernever overwrites an existingChart.yamland doesn't remove files from the chart directory, somake generate-helmchart-cidoesn't produce a diff.config/manifests/bases: useClickHouse Operatoras the display name, add keywords, and extend the description with the feature list from the repository README and theexamples/minimal.yamlexample.Breaking changes: none. The package name, channels and chart names don't change.
Checked locally:
helm lint,helm templateandhelm packagefor both charts with Helm 3.19.0;README.mdis in both packages.ah lint --kind helm(the linter of Artifact Hub) succeeds for both charts and reports the README, license, links, recommendations and operator capabilities as provided.make bundle VERSION=0.0.9succeeds, andoperator-sdk bundle validatepasses with the default,operatorhubandoperatorframeworkvalidators. The generated CSV carries the new display name, keywords and description.codespellwithci/.codespellrcon the changed files.After merge:
Publish Artifact Hub metadataworkflow pushes the newartifacthub-repo.ymlfiles. Artifact Hub applies the ignore rule the next time it processes the repositories, and0.0.8becomes the default version again.officialstatus can be requested.artifacthub.io/crdsannotation listsv1alpha1. It needs an update whenv1alpha2starts to be served.Related Issues
Related to #401
Note
Low Risk
Metadata and documentation only; no runtime operator or chart install behavior changes.
Overview
Per-commit Helm builds (
X.Y.Z-N.<commit>) will no longer surface as the default package on Artifact Hub: bothartifacthub-repo.ymlfiles add an ignore rule matching those version strings, so release versions stay primary while charts still publish to the same OCI registry.The operator and cluster Helm charts gain packaged READMEs, extra keywords/
sources, and Artifact Hub metadata (license, category, links, cross-chart recommendations; operator chart also declares CRDs, examples, and operator capabilities). The OperatorHubClusterServiceVersionbase is updated with display name ClickHouse Operator, more keywords, and a richer description with feature bullets and a getting-started YAML example.Reviewed by Cursor Bugbot for commit f6117b6. Bugbot is set up for automated code reviews on this repo. Configure here.
Workflow [PR]