Skip to content

[release-1.21] fix: host builder can push to OCP internal registry - #3887

Closed
knative-prow-robot wants to merge 1 commit into
knative:release-1.21from
knative-prow-robot:cherry-pick-3885-to-release-1.21
Closed

[release-1.21] fix: host builder can push to OCP internal registry#3887
knative-prow-robot wants to merge 1 commit into
knative:release-1.21from
knative-prow-robot:cherry-pick-3885-to-release-1.21

Conversation

@knative-prow-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #3885

OpenShift's internal registry returns HTTP 500 for manifest HEAD
requests by digest when the repository doesn't exist yet. Since
remote.WriteIndex checks child manifests by digest, the push fails
on a fresh repository.

Before writing the index, perform a HEAD request by tag. If the
registry returns 404, push an empty image to create the repository
first. The empty image tag is then overwritten by the index push.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
@knative-prow

knative-prow Bot commented Jun 8, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: knative-prow-robot
Once this PR has been reviewed and has the lgtm label, please assign gauron99 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow
knative-prow Bot requested a review from jrangelramos June 8, 2026 20:10
@knative-prow knative-prow Bot added the size/S 🤖 PR changes 10-29 lines, ignoring generated files. label Jun 8, 2026
@knative-prow

knative-prow Bot commented Jun 8, 2026

Copy link
Copy Markdown

@knative-prow-robot: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
unit-tests_func_release-1.21 7afd14b link true /test unit-tests

Your PR dashboard.

Details

Instructions 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. I understand the commands that are listed here.

@gauron99

gauron99 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Jun 8, 2026
@matejvasek matejvasek closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm 🤖 PR is ready to be merged. size/S 🤖 PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants