Skip to content

chore: fix the default version on Artifact Hub and enrich the registry listings - #416

Open
alexey-milovidov wants to merge 3 commits into
mainfrom
registry-listing-metadata
Open

alexey-milovidov wants to merge 3 commits into
mainfrom
registry-listing-metadata

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

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):

  • Both packages show a per-commit build as the latest version (0.0.9-53.9a2606f at the moment) instead of the 0.0.8 release. release-main.yml pushes a chart for every commit on main to the same OCI repositories as the releases, and Artifact Hub picks the latest version by plain semver precedence, so 0.0.9-53.… wins over 0.0.8. The install command on the page therefore points at a development build, and the version list contains about 150 such builds.
  • The pages are empty: the charts have no README, and no license, links, or CRD information.
  • The official status 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 older 0.0.5-18f10ea form of per-commit versions.
  • dist/chart and dist/chart-cluster: add a README.md to each chart, and add sources, 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. kubebuilder never overwrites an existing Chart.yaml and doesn't remove files from the chart directory, so make generate-helmchart-ci doesn't produce a diff.
  • config/manifests/bases: use ClickHouse Operator as the display name, add keywords, and extend the description with the feature list from the repository README and the examples/minimal.yaml example.

Breaking changes: none. The package name, channels and chart names don't change.

Checked locally:

  • helm lint, helm template and helm package for both charts with Helm 3.19.0; README.md is 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.9 succeeds, and operator-sdk bundle validate passes with the default, operatorhub and operatorframework validators. The generated CSV carries the new display name, keywords and description.
  • codespell with ci/.codespellrc on the changed files.

After merge:

  • The Publish Artifact Hub metadata workflow pushes the new artifacthub-repo.yml files. Artifact Hub applies the ignore rule the next time it processes the repositories, and 0.0.8 becomes the default version again.
  • Because per-commit builds are hidden from then on, the READMEs and the annotations appear on Artifact Hub with the next release. After that the official status can be requested.
  • The artifacthub.io/crds annotation lists v1alpha1. It needs an update when v1alpha2 starts 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: both artifacthub-repo.yml files 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 OperatorHub ClusterServiceVersion base 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]

@clickhouse-operator

clickhouse-operator Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [f6117b6]

Summary: ❌

job_name test_name status info comment
Compat E2E (operator-upgrade) FAIL
deploy suite :: [It] Operator upgrade should reconcile cluster after upgrade without data loss [upgrade] FAIL
deploy suite :: [It] Operator upgrade should reconcile cluster after upgrade without data loss [upgrade] FAIL

Code Review

Result: ✅ 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 v1alpha1 CRDs, and the documented chart defaults and examples match the chart templates and values.

Investigation: 8/13 rounds, 55 tool calls.

@security-ai-gate-reviewer security-ai-gate-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by the AI review gate on 6b49ad4. Details in the approver's comment on this pull request.

@security-ai-gate-reviewer

security-ai-gate-reviewer Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

AI review gate — auto-approved

security-ai-gate-reviewer[bot] approved 6b49ad491b10, an automated identity, not a human. The pull request was then force-pushed to f6117b6192c7 with the same diff (a rebase), so GitHub kept that approval on the new head. The AI review gate evaluated f6117b6192c7 on its own; a push that changes the diff needs a new approval.

History (latest 5 heads, newest first)

  • f6117b6192c7 approved — kept by GitHub from 6b49ad4 (same diff)
  • 6b49ad491b10 approved — green: Cursor Bugbot

@alexey-milovidov

Copy link
Copy Markdown
Member Author

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 clickhouse package) was listed there. The choices made in that PR, which you may want to adjust:

  • File-Based Catalog layout with the olm.semver template, so the channels are stable-v0 and fast-v0, the same as in docs/install/olm.mdx.
  • Catalogs v4.15–v4.22 and v5.0, derived from minKubeVersion: 1.28.0. The CI here covers OKD 4.22 only.
  • The reviewers in ci.yaml are the same two as in k8s-operatorhub/community-operators.

A follow-up is needed in this repository: release.yaml opens a PR only for k8s-operatorhub/community-operators. Once the OpenShift listing is merged, every release also needs a PR to community-operators-prod, otherwise the OpenShift listing stays at 0.0.8.

CI. Compat E2E (operator-upgrade) failed in create database after the upgrade: Distributed DDL task /clickhouse/task_queue/ddl/query-0000000000 is not finished on 1 of 2 hosts ... longer than distributed_ddl_task_timeout (report). This PR changes only registry metadata, the chart READMEs and the texts in the CSV, so it looks unrelated to me. I could not re-run the job myself.

@GrigoryPervakov
GrigoryPervakov enabled auto-merge (squash) December 2, 2026 12:07
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.
@GrigoryPervakov
GrigoryPervakov force-pushed the registry-listing-metadata branch from 6b49ad4 to f6117b6 Compare December 2, 2026 14:01
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

AI review gate — Human approval in place of AI review

Approved on the head commit by GrigoryPervakov (write access, not the author), standing in for the AI review:

  • Cursor Bugbot is still reviewing this commit.

What to do:

  • Nothing to do yet if the review is running. The gate turns green when it finishes clean.
  • No review showing up? Post bugbot run as a new top-level PR comment. If that does nothing, Bugbot is probably not enabled for this repository: ask a repository administrator.

Evaluated at f6117b61. This required workflow does not re-run on its own once the AI review later concludes — check the Cursor Bugbot check on this commit directly for its current state.

This branch has not been deployed

No deployments
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