Repository navigation
Conversation
shape_images refused any image outside quay.io/simplyblock-io,
docker.io/simplyblock and public.ecr.aws/simply-block, on the grounds that the
CRD's pattern admitted only those three. Operator 41e55d6b ("fix(api): accept
image references from any registry", #751, 2026-10-23) replaced that with a
generic OCI reference pattern that takes any registry host. This copy was never
updated.
So the harness has been failing k8s bring-up for every image on
registry.simplyblock.ai -- which is where ultra has been published since
operator #223 on 2026-10-28 -- with a message asserting the apiserver would
refuse a document it would in fact have accepted. It read as a product defect
and was nearly filed as one.
Mirror the current pattern from atlas-lib/crdtypes/image.go instead, and say so
in the comment, so the next person checks the source before believing this.
The check still earns its place: it names the offending variable, where the
apiserver returns the regex with no value attached. It now rejects only what
the CRD rejects -- an untagged reference, a malformed path.
Ported to main from d413fd0 on feat/pnfs-e2e (SFAM-2849).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Ported your previous fix on the pnfs branch to main which fixes https://simplyblock.atlassian.net/browse/SFAM-2849 |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the image-reference validation update.
No open issues 🎉
What changed in this PR
Updates the Kubernetes end-to-end bring-up harness to accept image references from any registry, including registry.simplyblock.ai, aligning local validation with the operator’s CRD pattern.
Changes:
- Replaces the three-registry allowlist with validation supporting registry hosts, nested repository paths, tags, and SHA-256 digests.
- Revises validation errors to explain the accepted reference format.
- Documents the mirrored pattern’s source and why it must stay synchronized.
| File | Description |
|---|---|
e2e/scripts/k8s_cluster_bringup.py |
Broadens image-reference validation and updates its error message and explanatory comments. |
Review effort: Balanced
RaunakJalan
approved these changes
Nov 20, 2026
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.
e2e/scripts/k8s_cluster_bringup.pykeeps a copy of the CRD image pattern in_IMAGE_RE, so a bad reference is reported with the offending variable named. On main that copy is still the three-registry allowlist the operator dropped in 41e55d6b (#751, 2026-10-23). Since ultra moved toregistry.simplyblock.ai(2026-10-28), every k8s bring-up naming a current ultra build fails before the ClusterDeploymentConfig is submitted, with a message saying the apiserver would refuse a document it would accept.This ports d413fd0 from
feat/pnfs-e2e:_IMAGE_REnow matchesImageReferencein the operator'satlas-lib/crdtypes/image.go, and the error message says what is actually required.Checked against the pattern on main and the patched one:
registry.simplyblock.ai/ultra:main-61ff864aregistry.simplyblock.ai/simplyblock/simplyblock:main-dd4c8d54registry.simplyblock.ai/ultra@sha256:…quay.io/simplyblock-io/spdk:v1@sha256:…simplyblock/spdk(untagged)Jira: SFAM-2849. Failing run: https://github.com/simplyblock/sbcli/actions/runs/42223165332
🤖 Generated with Claude Code