8000 feat: Add redhat certification for operator by jaitaiwan · Pull Request #2081 · Altinity/clickhouse-operator · GitHub
[go: up one dir, main page]

Skip to content

feat: Add redhat certification for operator - #2081

Draft
jaitaiwan wants to merge 6 commits into
Altinity:0.28.0from
jaitaiwan:feat/red-hat-certified-images
Draft

jaitaiwan wants to merge 6 commits into
Altinity:0.28.0from
jaitaiwan:feat/red-hat-certified-images

Conversation

@jaitaiwan
@jaitaiwan jaitaiwan commented Sep 14, 2026 •
Copy link
Copy Markdown

What

A Red Hat certified operator distribution, separate from the community catalog that dev/build_hub_releases.sh already publishes to (community-operators-prod):

  • dockerfile/ubi9/{operator,metrics-exporter}/Dockerfile — production images on Red Hat base images only (ubi9/go-toolset:<go.mod version> builder, ubi9/ubi runtime).
  • deploy/certified-operator/ — builds the certified bundle from the existing deploy/builder/operatorhub.sh output: digest-pinned images, relatedImages, OpenShift version range, ci.yaml for the Red Hat pipeline.
  • pkg/model/{chi,chk}/config — default ClickHouse, Keeper and log images can be overridden through the operator's environment (CLICKHOUSE_OPERATOR_DEFAULT_{CLICKHOUSE,KEEPER,LOG}_IMAGE), so the bundle pins them to the certified digests from relatedImages. Without those variables nothing changes.
  • Workflows:
    • check_ubi9 builds and checks both UBI images on PRs.
    • check_redhat_bundle generates and validates the bundle on PRs.
    • release_ubi9 builds, signs, pushes and Preflight-submits the UBI images on release.
    • publish_redhat_bundle opens the certified-operators PR once Red Hat has published the images. It runs after release_ubi9, then daily.

Everything that pushes or submits stays off until vars.RED_HAT_CERTIFICATION_ENABLED == 'true'.

What is still missing before this can be used

Nothing in this PR works against Red Hat until these exist. Each one is described in deploy/certified-operator/README.md.

Missing Where it comes from
Decision to go for Red Hat certification at all Maintainers / Altinity business. The community catalog keeps working without this PR
Partner Connect account with 3 projects: Operator Bundle, operator container, metrics-exporter container connect.redhat.com → Product listings
RED_HAT_BUNDLE_CERT_PROJECT_ID (var) Partner Connect → Operator Bundle project → project ID
RED_HAT_OPERATOR_CERTIFICATION_COMPONENT_ID, RED_HAT_METRICS_CERTIFICATION_COMPONENT_ID (secrets) Partner Connect → each container project → project ID
RED_HAT_PYXIS_API_TOKEN (secret) Partner Connect → Product listings → API keys
RED_HAT_REGISTRY, RED_HAT_REGISTRY_NAMESPACE (vars); UBI_REGISTRY_USERNAME, UBI_REGISTRY_PASSWORD (secrets) The registry for the certified images (for example a quay.io organization) and a robot account that can push clickhouse-operator and metrics-exporter there
RED_HAT_RELATED_IMAGES (var) Certified digests of the default ClickHouse server and Keeper images, each needing its own Partner Connect container project. clickhouse/clickhouse-server from Docker Hub is not certified. For clickhouse-log: a registry.access.redhat.com/ubi9/ubi-minimal digest
RED_HAT_CERTIFIED_OPERATORS_FORK (var), RED_HAT_CERTIFIED_OPERATORS_TOKEN (secret) A fork of redhat-openshift-ecosystem/certified-operators, plus a token of the GitHub user linked to the Partner Connect project, limited to that fork and to opening PRs
RED_HAT_PACKAGE_NAME, RED_HAT_OPENSHIFT_VERSIONS, RED_HAT_CERTIFICATION_START_VERSION (vars) Package name agreed with Red Hat; the OpenShift range Altinity tests; the first release to certify

Merge notes

  • The contributor's commits are GPG-signed but have no Signed-off-by line (DCO, see CONTRIBUTING.md). Squash on merge and add the sign-off there.
  • Verified locally: both UBI images build, run as nobody, report the release version, and pass the runtime checks of check_ubi9. go test ./pkg/... and actionlint on the new workflows pass.

Checklist

  • All commits in the PR are squashed — on merge 8000
  • The PR is made into dedicated next-release branch (0.28.0), not into master branch
  • The PR is signed — the sign-off goes into the squash commit

🤖 Generated with Claude Code

`go install operator-sdk@v1.42.3` fails to build on the CI runner because
operator-sdk cgo-links against libgpgme (via containers/image), which the
runner doesn't have dev headers for: "Package gpgme was not found in the
pkg-config search path." publish_redhat_bundle.yaml's own "Install bundle
tools" step already sidesteps this by downloading the prebuilt yq/operator-sdk
release binaries instead of building them - mirror that here. Also drops the
now-unused Set up Go step, since nothing else in this job invokes go.
@jaitaiwan
jaitaiwan force-pushed the feat/red-hat-certified-images branch from 9a8187d to bc7ca8e Compare September 14, 2026 02:09
…ied-images

# Conflicts:
#	dev/build_hub_releases.sh
#	pkg/model/chi/config/const.go
@Slach
Slach changed the base branch from master to 0.28.0 December 2, 2026 10:53
Slach and others added 3 commits December 2, 2026 16:13
…roduction image

The UBI builds failed since 0.28.0 keeps .git out of the docker context: go_build_config.sh
needs GIT_SHA passed in, as dockerfile/operator/Dockerfile does. The go-toolset image was
pinned to Go 1.26.5 with GOTOOLCHAIN=local while go.mod requires 1.27.4; it now follows
GO_VERSION from go.mod like golang:${GO_VERSION} in the main Dockerfiles, so the workflows
no longer hardcode GO_TOOLSET_IMAGE/UBI_IMAGE next to the Dockerfile defaults.

The certified images are the production ones only: the debug and ACVP stages stay in the
main Dockerfiles instead of being copied here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: slach <bloodjazman@gmail.com>
The same imageFromEnv helper was copied into chi and chk config; both now use
pkg/util, and the comment says why the defaults are overridable at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: slach <bloodjazman@gmail.com>
…s only to their steps

The bundle used to be polled every 6 hours with the certified-operators token and the
Pyxis token in every step's environment, including the ones that download tools. It
now starts when release_ubi9 succeeds, keeps a daily run for images Red Hat publishes
later, and passes each token only to the steps that use it. The README says where each
variable and secret comes from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: slach <bloodjazman@gmail.com>
@Slach
Slach requested a review from alex-zaitsev December 2, 2026 16:52

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

0