GeezerVison is showing github.com — bug-fix: preserve registry on OpenShift namespace change by gauron99 · Pull Request #3445 · knative/func
Conversation
gauron99
commented
Feb 19, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
OS registry was being forced when working on OS cluster but wanted to have deployed a function which has image in different registry eg. docker.io. On namespace change given --namespace this would instead force the OS internal registry to be used ignoring the previously given one. This PR ensures that the registry is preserved in this scenario and the resolved f.Registry is taken into consideration.
Introducing
func SetOpenShiftForTest(val bool) func() {
checkOpenShiftOnce.Do(func() {}) // ensure real detection won't run
prev := isOpenShift
isOpenShift = val
return func() { isOpenShift = prev }
}
to test openshift without running the real detection
- regression tests included
/kind bug
/fix #2172
Release Note
bug-fix: dont force openshift registry when changing namespace
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gauron99
changed the title
fix: preserve user-speciffide registry on OpenShift redeploy
fix: preserve registry on OpenShift redeploy
Feb 19, 2026
codecov
Bot
commented
Feb 19, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 37.50000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.70%. Comparing base (3919780) to head (4bcecaa).
⚠️ Report is 3 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #3445 +/- ##
==========================================
- Coverage 54.72% 54.70% -0.02%
==========================================
Files 181 181
Lines 20431 20436 +5
==========================================
- Hits 11180 11179 -1
- Misses 8072 8076 +4
- Partials 1179 1181 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry.
📢 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gauron99
changed the title
fix: preserve registry on OpenShift redeploy
bug-fix: preserve registry on OpenShift redeploy
Mar 4, 2026
gauron99
changed the title
bug-fix: preserve registry on OpenShift redeploy
bug-fix: preserve registry on OpenShift namespace change
Mar 4, 2026
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.
Great job! 😸 👍
Nothing to add from my side.
/approve
/lgtm
/hold for other reviewers
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gauron99, twoGiants
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
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
lkingland
Awaiting requested review from lkingland
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Labels
approved
🤖 PR has been approved by an approver from all required OWNERS files.
kind/bug
Bugs
lgtm
🤖 PR is ready to be merged.
size/L
🤖 PR changes 100-499 lines, ignoring generated files.
Milestone
No milestone
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.
|