-
Notifications
You must be signed in to change notification settings - Fork 24
CONSOLE-4910: Add support for loading plugins from local manifests #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #281 +/- ##
=======================================
Coverage 25.20% 25.20%
=======================================
Files 40 40
Lines 1210 1210
Branches 244 244
=======================================
Hits 305 305
Misses 889 889
Partials 16 16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f3968ab to
ed0e050
Compare
ed0e050 to
aca0ed9
Compare
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/hold |
aca0ed9 to
c193e2d
Compare
|
New changes are detected. LGTM label has been removed. |
| "eslint-print-config": "yarn eslint --print-config", | ||
| "jest": "TZ=UTC jest --passWithNoTests", | ||
| "jest-print-config": "jest --showConfig", | ||
| "sample-app-install-cypress": "yarn workspace @monorepo/sample-app run cypress install", |
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.
This is a helper script to make test env. preparation easier when running in a container.
|
@vojtechszocs: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
/hold Will do some minor changes based on discussion with @christianvogt |
Hyperkid123
left a comment
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.
👍
|
@Hyperkid123: changing LGTM is restricted to collaborators In response to this:
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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Hyperkid123, logonoff, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retitle CONSOLE-4910: Add support for loading plugins from local manifests |
|
@vojtechszocs: This pull request references CONSOLE-4910 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
Summary
This PR allows your application to manually load new plugins without involving the usual load-over-network process.
This change does not break the current
PluginStore.loadPluginfunction signature or semantics.Details
PluginStore.loadPluginfunction can be used to load plugins fromPluginManifestorLocalPluginManifestPluginManifestLocalPluginManifestHow is loading via local manifest different from loading via standard manifest?
As per default
PluginLoader.loadPluginimplementation:entryModule.initfunction is not calledmanifest.extensionsare not decodedWhat is the purpose of
applyCodeRefSymbolhelper function?To mark the given
() => Promise<TValue>function withCodeRefsymbol so thatuseResolvedExtensionshook treats it as a code reference to be resolved intoTValue.