-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PluginRequest.Universe doesn't get populated before calling an external plugin #3214
Comments
@camilamacedo86 @everettraven - I've opened this issue as discussed in the community meeting, thanks! |
based on helpers.go#L106, Kubebuilder will instantiate an empty before sending |
@em-r Thanks for creating this issue! I definitely agree that the line you shared is the problem area. IMO I think this section should be updated to use the |
Hi @em-r, Your help is more than welcome. Please, feel free to raise a PR against to fix this one if you wish. |
/assign |
Hi @camilamacedo86, I have a question (just out of curiosity): since we |
Hi @em-r, #3214 (comment) |
@camilamacedo86 - this makes sense, I completely agree with you. If there is ever a plan to introduce this, I can help with implementing it (and with POC if needed). |
What broke? What's expected?
Before sending a request to an external plugin through STDIN, Kubebuilder doesn't populate
PluginRequest.Universe
with the content of the files that were modified by plugins earlier in the chain.For instance, if we try out the example from Phase 2 POC:
kubebuilder create api --plugins=go/v3,myexternalplugin/v2
Files modified by
go/v3
won't be available inUniverse
field inPluginRequest
sent tomyexternalplugin/v2
.Reproducing this issue
myexternalplugin/v1
that inspectsPluginRequest.Universe
. (example)kubebuilder init --plugins=go/v3,myexternalplugin/v1
go/v3
won't be available inPluginRequest.Universe
inmyexternalplugin
.KubeBuilder (CLI) Version
3.9.0
PROJECT version
No response
Plugin versions
No response
Other versions
Go version: 1.19.4 linux/amd64
Extra Labels
No response
The text was updated successfully, but these errors were encountered: