Skip to content

[release-1.22] fix: host builder can push to OCP internal registry - #3886

Merged
knative-prow[bot] merged 1 commit into
knative:release-1.22from
knative-prow-robot:cherry-pick-3885-to-release-1.22
Jun 8, 2026
Merged

[release-1.22] fix: host builder can push to OCP internal registry#3886
knative-prow[bot] merged 1 commit into
knative:release-1.22from
knative-prow-robot:cherry-pick-3885-to-release-1.22

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 requested review from dsimansk and 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
@matejvasek

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Jun 8, 2026
@knative-prow

knative-prow Bot commented Jun 8, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knative-prow-robot, matejvasek

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

The pull request process is described 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 added the approved 🤖 PR has been approved by an approver from all required OWNERS files. label Jun 8, 2026
@knative-prow
knative-prow Bot merged commit 89dbbae into knative:release-1.22 Jun 8, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. 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.

2 participants