-
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
Plugins API for external plugins should provide option to allow check what is the layout and plugins used in a chain #3396
Comments
Requester (who got this limitation): @em-r @rashmigottipati @everettraven I think that would be a great fit for the GSC0 2023 program, either. |
HI @Eileen-Yu, Could you please rebase the PR: #3526? Also, could you please let us know if has any reason for we do not move with this one? Is that in a final state, could we get this one merged? WDYT? Thank you a lot for your collaboration. |
I've rebased the PR. |
Based on some previous discussion, passing the config using the
However, one issue happened from my side is: the PROJECT failed to get updated (though the cfg already been successfully overwritten):
So, I think we can also try solving this in another PR OR I'm OK to continue on this one. How would you like? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What broke? What's expected?
Example scenario:
The problem is that the declarative plugin needs to know if the project is being scaffolded with go/v4 or go/v3 so that it can perform correct scaffolding around Dockerfile in the init subcommand. and unfortunately, when the init subcommand is running, the PROJECT file won't exist at that point so extracting the layout from it won't be an option, which leads me to think that we need to either "inject" the config (the way we do with internal plugins) through the PluginRequest input.
Reproducing this issue
An alternative solution would be to ensure that we generate the PROJECT file before we call the second plugin in a chain so that would allow the external plugins read the file and parse its information.
KubeBuilder (CLI) Version
3.10.0
PROJECT version
No response
Plugin versions
No response
Other versions
No response
Extra Labels
No response
The text was updated successfully, but these errors were encountered: