Skip to content

Meta - ComponentConfig scaffolds should not be done by default  #2782

@camilamacedo86

Description

@camilamacedo86

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 run kubebuilder 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.

Metadata

Metadata

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.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions