Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: oskutka The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Hi @oskutka. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
The digest bundle is what ships in the release-digest catalog, and its RELATED_IMAGE_* values reach administrators' PinnedImageSets, but nothing verified they could be pre-pulled. A single OCI image manifest is well formed and pullable yet `podman manifest inspect` rejects it, and the prefetch is all-or-nothing per node. After rewriting tags to digests, fail the release when a RELATED_IMAGE_* value is not a digest reference accepted by the API or fails `podman manifest inspect` in an empty store. Also fail when a digest cannot be resolved instead of writing an empty reference, and strip tags with the last-colon rule so a registry port or an existing digest is not mangled. Assisted-by: Claude Code Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Ondrej Skutka <oskutka@redhat.com>
8cbbbf9 to
de00e55
Compare
What does this PR do?
build/scripts/build_digests_bundle.sh, whichmake-release.sh --releaseruns to turn thetag-based bundle into the digest bundle, now validates the result before the bundle is pushed.
Every
RELATED_IMAGE_*value in the rendered CSV — regular and init containers — must be a digestreference accepted by the
PinnedImageSetAPI and must passpodman manifest inspectin an emptystore. A single OCI image manifest is well formed and pullable, yet that command fails on it and an
administrator's pinned image set is silently disabled, because the prefetch is all-or-nothing per
node.
The same change:
image@into the bundle;strip_tag), so a registry port or an already-digestedreference is not mangled;
RELATED_IMAGE_*values.What issues does this PR fix or reference?
CRW-14102. Context: eclipse-che/che#23975 (moving
:nexteditor definitions shipped in 7.124.0)and eclipse-che/che#24027 (root cause of the moving UDI reference that died after 7.123.0/7.124.0).
Similar check for eclipse-che/che-operator: eclipse-che/che-operator#2280
Documentation PR in eclipse-che/che-docs: eclipse-che/che-docs#3215.
Is it tested? How?
bash -npasses; shellcheck reports only the pre-existingSC2317notes that are also presenton
main.fails with the expected "Treating single images as manifest lists is not implemented", an empty
value is rejected, and
strip_taghandlesquay.io:443/…,image:tagandimage@sha256:….exercised here; the digest bundle output is unchanged for references without a registry port.
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-pathto trigger)v8-devworkspace-operator-e2e: DevWorkspace e2e testv8-che-happy-path: Happy path for verification integration with Che🤖 Generated with Claude Code