-
Notifications
You must be signed in to change notification settings - Fork 111
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
Feat: Add the backend plugin framework #740
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #740 +/- ##
========================================
Coverage 61.08% 61.09%
========================================
Files 99 106 +7
Lines 18081 18543 +462
========================================
+ Hits 11045 11328 +283
- Misses 5693 5826 +133
- Partials 1343 1389 +46
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
4db7501
to
f10a8eb
Compare
fb3fb9a
to
fd520c6
Compare
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
07edd43
to
8d6b16e
Compare
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
packages/velaux-ui/src/pages/Addons/components/registry-manage/index.tsx
Outdated
Show resolved
Hide resolved
AuthType AuthType `json:"authType,omitempty"` | ||
AuthSecret *KubernetesSecret `json:"authSecret,omitempty"` | ||
// For the kube auth type, define the max scope permission for this plugin. | ||
KubePermissions []rbacv1.PolicyRule `json:"kubePermissions,omitempty"` |
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.
rbacPolicies
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
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
* Feat: Add the backend plugin framework Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: add some unit tests Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: the package order Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: make the node dashboard plugin to work Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: change the code style Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: e2e test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: Support to prxoy the multiple cluster API Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: Change the menu Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: Can't build ui package Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: e2e test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: unit test case Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: change some words Signed-off-by: barnettZQG <barnett.zqg@gmail.com> --------- Signed-off-by: barnettZQG <barnett.zqg@gmail.com> Signed-off-by: liyanfang <liyanfang@cmss.chinamobile.com>
Description of your changes
This PR has three goals:
Plugin Definition
backendType
: The options includekube-api
,kube-service
, andstatic-server
kubePermissions
: This field defines the permission policy of the cluster role. Only available for thekube-api
type.routes
: This field defines the allowed route. The empty route means allowing all APIs. Every route could define the needed permission.For this example plugin config, follow APIs are available:
I have:
yarn lint
to ensure the frontend changes are ready for review.make reviewable
to ensure the server changes are ready for review.backport release-x.y
labels to auto-backport this PR if necessary.Special notes for your reviewer