-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
📖 Plugin Phase 2 Enhancement Proposal #2243
📖 Plugin Phase 2 Enhancement Proposal #2243
Conversation
Hi @rashmigottipati. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
@rashmigottipati: GitHub didn't allow me to request PR reviews from the following users: jmrodri. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. |
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.
A few items to clarify.
I think we need to add more details on the following:
|
Interestingly enough, a lot of what we're talking about here reminds me of CORBA. |
@estroz made a good point when he mentioned security regarding the environment. @rashmigottipati What's our answer for security of the plugins? For example, do we prevent or care if someone has malicious code that we could run arbitrarily? Do we need a signature for plugins that can be verified? Or do we leave that up to the user that installed the plugin that they have verified it is from a known source and they have chosen to install it? |
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.
Lots of cleanup needed.
Another issue has come to mind too: what happens when an external plugin wants to run a generator on some files it added to the universe? It cannot write those files itself since the universe wouldn't reflect the file's actual state, and it cannot run the generator if the files don't exist on-disk. I think some sort of post-plugin hook (executable) could be added to the PluginResponse
struct so kubebuilder
can execute it after writing the universe to disk. This hook executable would be in the same directory as the external plugin itself, but the plugin executable name would be different (specified in the PluginResponse
). Thoughts?
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.
@rashmigottipati quick nit for the overview. Apply @estroz comments and I will re-review again. I agree with eric's additions but it's hard to reconcile until they have been applied.
effdc35
to
f081086
Compare
@estroz What do you think about adding a |
After having an offline discussion with @estroz, we decided to implement the post plugin hooks in follow-ups. |
5ac60f5
to
675447a
Compare
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.
A couple things and suggestions.
0a93566
to
6c567ea
Compare
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.
/lgtm
@jmrodri: 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/test-infra repository. |
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.
One small fix, otherwise lgtm! Will label after you push the change.
/ok-to-test |
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
6c567ea
to
1f39506
Compare
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: estroz, jmrodri, rashmigottipati 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 |
Description of the change
This PR adds an enhancement proposal for Kubebuilder Phase 2 Plugins
Signed-off-by: Rashmi Gottipati chowdary.grashmi@gmail.com