fix: Normalize scheme handling and update identity type to OCIRegistry#1964
Merged
jakobmoellerdev merged 2 commits intoMar 13, 2026
Merged
Conversation
Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Contributor
📝 WalkthroughWalkthroughThis change refactors OCI identity type naming from "OCIRepository" to "OCIRegistry" and simplifies URL parsing logic by replacing manual URL component extraction with a centralized ParseURLToIdentity helper. Runtime identity matching is updated with scheme normalization to handle "oci" scheme mapping to "https". Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
frewilhelm
approved these changes
Mar 13, 2026
matthiasbruns
approved these changes
Mar 13, 2026
This was referenced Mar 16, 2026
This was referenced Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does / why we need it
different)
removes scheme/port defaulting
leading / stripped
runtime.NewUnversionedType(ociv1.Type)
Which issue(s) this PR fixes
fixes part of the inconsistencies across Consumer Identities: open-component-model/ocm-project#916
once this is complete I will need to bump both OCI + runtime and then patch it in both CLI + Controllers to take effect fully.
Testing
How to test the changes
Required files to test the changes:
.ocmconfig
Commands that test the change:
Verification
ocmSummary by CodeRabbit
Bug Fixes
Tests