feat(install-dynamic-plugins): add ref:// plugin reference resolution - #4110
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
PR Summary by QodoAdd ref:// plugin reference resolution to install-dynamic-plugins merger
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4110 +/- ##
==========================================
+ Coverage 57.94% 57.98% +0.03%
==========================================
Files 2399 2400 +1
Lines 96151 96184 +33
Branches 26829 26841 +12
==========================================
+ Hits 55713 55769 +56
+ Misses 38938 38915 -23
Partials 1500 1500
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules✅ Cross-repo context Explored:
repo: redhat-developer/rhdh (sha: 5fe91c8b) Explored:
repo: redhat-developer/rhdh-local (sha: 2ae9e8c8) Explored:
repo: redhat-developer/rhdh-operator (sha: 3df5f74e) Not relevant to this PR:
redhat-developer/rhdh-chart 1. HTTP name parsing bug
|
gashcrumb
left a comment
There was a problem hiding this comment.
Nice! Do you have other stuff to add before creating a new release of this package; or if not does this need a changeset?
Allow plugin configurations to reference other plugins by name using ref://plugin-name instead of repeating full OCI or HTTP package URLs. The resolver matches the ref name against extracted plugin names from already-merged plugins and replaces the ref with the resolved package URL. Ref: RHIDP-15875 Signed-off-by: Jon Koops <jonkoops@gmail.com>
4e2ec90 to
2404755
Compare
|
davidfestal
left a comment
There was a problem hiding this comment.
I'm wondering whether it is expected to allow smooth transition from the wrappers local references to oci artifacts ?
If that's the case, how do we manage the -dynamic suffix at the end of the wrapper folder name ?
There will need to be documentation for customers to migrate over; this will be a breaking change for 2.1. Either way, it is not a concern of this PR, but a general issue that we need to handle as part of the wrapper removal. The same goes for removing support for local paths and HTTP URL base |
…redhat-developer#4110) Allow plugin configurations to reference other plugins by name using ref://plugin-name instead of repeating full OCI or HTTP package URLs. The resolver matches the ref name against extracted plugin names from already-merged plugins and replaces the ref with the resolved package URL. Ref: RHIDP-15875 Signed-off-by: Jon Koops <jonkoops@gmail.com>



Adds
ref://plugin reference resolution to the init container's config merger, matching the behaviour of the operator.Plugin configurations can now use
ref://plugin-nameto reference another plugin by its extracted name, instead of repeating full OCI or HTTP package URLs. The resolver scans already-merged plugins, extracts their names from the package URL (OCI, HTTP, or local path), and replaces the ref with the matched package string.NPM package references (e.g.
@backstage/plugin-catalog) are not supported asref://targets, asref://is primarily designed to simplify references to OCI-distributed plugins in the catalog where full image URLs with digests would otherwise need to be repeated.Ref: RHIDP-15875