Skip to content

PluginRequest.Universe doesn't get populated before calling an external plugin #3214

@em-r

Description

@em-r

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 in Universe field in PluginRequest sent to myexternalplugin/v2.

Reproducing this issue

  1. Set up a basic external plugin myexternalplugin/v1 that inspects PluginRequest.Universe. (example)
  2. Initialize a new project using 2 plugins (including the one from 1.): kubebuilder init --plugins=go/v3,myexternalplugin/v1
  3. Notice how the files modified by go/v3 won't be available in PluginRequest.Universe in myexternalplugin.

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

Metadata

Metadata

Assignees

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions