GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: host builder can push to OCP internal registry by matejvasek · Pull Request #3885 · knative/func

Conversation

@matejvasek

@matejvasek matejvasek commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix OCI pusher failing to push images to OpenShift's internal registry when the repository doesn't exist yet
  • OpenShift's registry returns HTTP 500 for manifest HEAD requests by digest on non-existent repos, which breaks remote.WriteIndex since it checks child manifests by digest
  • Before writing the index, do a HEAD by tag to check repo existence; on 404, push an empty image to create the repo first, then proceed with the full index push

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lkingland reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@matejvasek
fix: host builder can push to OCP internal registry
c20b65f
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 <[email protected]>
@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 requested review from dsimansk and jrangelramos June 8, 2026 19:24
@knative-prow knative-prow Bot added the size/S 🤖 PR changes 10-29 lines, ignoring generated files. label Jun 8, 2026
@matejvasek
matejvasek requested review from gauron99 and lkingland and removed request for jrangelramos June 8, 2026 19:24
@codecov

codecov Bot commented Jun 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.98%. Comparing base (a6ba689) to head (c20b65f).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/oci/pusher.go 40.00% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3885      +/-   ##
==========================================
- Coverage   54.03%   53.98%   -0.05%     
==========================================
  Files         200      200              
  Lines       23567    23566       -1     
==========================================
- Hits        12734    12723      -11     
- Misses       9604     9612       +8     
- Partials     1229     1231       +2     
Flag Coverage Δ
e2e 33.50% <40.00%> (+0.01%) ⬆️
e2e go 29.42% <50.00%> (+0.01%) ⬆️
e2e node 25.73% <0.00%> (+<0.01%) ⬆️
e2e python 29.76% <50.00%> (+0.01%) ⬆️
e2e quarkus 25.86% <0.00%> (+<0.01%) ⬆️
e2e rust 25.33% <0.00%> (+0.01%) ⬆️
e2e springboot 24.01% <0.00%> (+<0.01%) ⬆️
e2e typescript 25.85% <0.00%> (+<0.01%) ⬆️
e2e-config-ci 26.97% <50.00%> (+0.01%) ⬆️
integration 15.70% <0.00%> (-0.03%) ⬇️
unit macos-14 42.88% <50.00%> (-0.04%) ⬇️
unit macos-latest 42.88% <50.00%> (-0.04%) ⬇️
unit ubuntu-24.04-arm 43.20% <40.00%> (-0.04%) ⬇️
unit ubuntu-latest 43.74% <50.00%> (-0.04%) ⬇️
unit windows-latest 42.95% <50.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gauron99
gauron99 approved these changes Jun 8, 2026
View reviewed changes

@gauron99 gauron99 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@knative-prow knative-prow Bot assigned gauron99 Jun 8, 2026
@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: gauron99, 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:
  • OWNERS [gauron99,matejvasek]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow
knative-prow Bot merged commit dfabe19 into knative:main Jun 8, 2026
41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@matejvasek

matejvasek commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

/cherry-pick release-1.22

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matejvasek

matejvasek commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

/cherry-pick release-1.21

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow-robot

knative-prow-robot commented Jun 8, 2026

Copy link
Copy Markdown

@matejvasek: new pull request created: #3886

Details

In response to this:

/cherry-pick release-1.22

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow-robot

knative-prow-robot commented Jun 8, 2026

Copy link
Copy Markdown

@matejvasek: new pull request created: #3887

Details

In response to this:

/cherry-pick release-1.21

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jun 8, 2026
[release-1.22] fix: host builder can push to OCP internal registry #3886
Merged
[release-1.21] fix: host builder can push to OCP internal registry #3887
Closed
@pmeida pmeida mentioned this pull request Sep 2, 2026
SRVOCF-1079: Control func cli version installed in workflow openshift/faas-console-plugin#179
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gauron99 gauron99 gauron99 approved these changes
@dsimansk dsimansk Awaiting requested review from dsimansk
@lkingland lkingland Awaiting requested review from lkingland

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gauron99 gauron99

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@matejvasek @knative-prow-robot @gauron99
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.