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
Meta - ComponentConfig scaffolds should not be done by default #2782
Comments
/assign |
Re-open this one it still missing we create a plugin for this feature and deprecate the flag. |
@camilamacedo86 yes, working on plug-in part for this command. |
@camilamacedo86 - Raised PR #2942 for one of the fixes. Working on the below part and will raise the PR soon.
|
@camilamacedo86 raised PR for |
This issue is labeled with You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
I stumbled upon this issue because the linter is now throwing errors that |
Yes, we need to just deprecated the flag and we deprecated the configuration already, see: #3442 @laxmikantbpandhare could you please rebase your PR #3023, ensure that we are deprecating it for go/v4 and help us to get it merged ? Or if any other person either would like to help with this one would be great. Thank you. |
@camilamacedo86 - I was on leave and away from coding. I will look into it and merge it ASAP. |
What is the intended replacement for componentconfig we should be using instead? |
What broke? What's expected?
Users should have the scaffold of https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/book/src/component-config-tutorial/testdata/project/config/manager/controller_manager_config.yaml ONLY/when they create the project following the tutorial: https://book.kubebuilder.io/component-config-tutorial/api-changes.html
That means, the scaffold should only be done when we run
kubebuilder init --domain tutorial.kubebuilder.io --component-config
. However, it has been added to the default scaffolds when we runkubebuilder init
and it has brought confusion since users do not understand how properly use it and that their code in the main.go also needs to be customized accordingly.Reproducing this issue
Examples:
KubeBuilder (CLI) Version
3.5.0
Plugin versions
Therefore, these options would fit in a plugin and should not be a flag. It is only a flag because it was implemented in the past (Kubebuilder 2.X) before the plugin design was introduced.
Proposed changes (Bug FIX)
a) Ensure that the component config scaffolds are not done by default and are only done when the flag is used - 🐛 (kustomize/v1 and kustomize/v2-alpha) : ComponentConfig scaffolds should not be done by default #2826
b) Review the documentation and ensure that it proper clarifies how it should be used and work - done
Proposed changes in the long term (RFE)
a) Deprecated the flag
b) Move ComponentConfig behaviour to a plugin that can be used in the init/edit subcommands.
The text was updated successfully, but these errors were encountered: