Skip to content
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

Closed
1 of 2 tasks
camilamacedo86 opened this issue Jun 30, 2022 · 10 comments · Fixed by #2826 or #3467
Closed
1 of 2 tasks

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

camilamacedo86 opened this issue Jun 30, 2022 · 10 comments · Fixed by #2826 or #3467
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@camilamacedo86
Copy link
Member

camilamacedo86 commented Jun 30, 2022

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.

@camilamacedo86 camilamacedo86 added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Jun 30, 2022
@camilamacedo86 camilamacedo86 changed the title ComponentConfig scaffolds should not be done by default Meta - ComponentConfig scaffolds should not be done by default Jun 30, 2022
@camilamacedo86 camilamacedo86 added kind/feature Categorizes issue or PR as related to a new feature. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed kind/feature Categorizes issue or PR as related to a new feature. labels Jun 30, 2022
@laxmikantbpandhare
Copy link
Member

/assign

@camilamacedo86
Copy link
Member Author

Re-open this one it still missing we create a plugin for this feature and deprecate the flag.
Also, we should update the docs in the pr where it will be addressed.

@laxmikantbpandhare
Copy link
Member

@camilamacedo86 yes, working on plug-in part for this command.

@laxmikantbpandhare
Copy link
Member

@camilamacedo86 - Raised PR #2942 for one of the fixes.

Working on the below part and will raise the PR soon.

Move ComponentConfig behavior to a plugin that can be used in the init/edit subcommands.

@laxmikantbpandhare
Copy link
Member

@camilamacedo86 raised PR for init/edit subcommands: #3022

@k8s-triage-robot
Copy link

This issue is labeled with priority/important-soon but has not been updated in over 90 days, and should be re-triaged.
Important-soon issues must be staffed and worked on either currently, or very soon, ideally in time for the next release.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Deprioritize it with /priority important-longterm or /priority backlog
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot removed the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Feb 8, 2023
@camilamacedo86 camilamacedo86 added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Feb 8, 2023
@camilamacedo86 camilamacedo86 added this to the Kubebuilder 4x milestone Feb 11, 2023
@rustycl0ck
Copy link

I stumbled upon this issue because the linter is now throwing errors that options.AndFrom is deprecated and will be removed in a future version. Will have to bypass the linter for now, but the documents should at least be updated soon to discourage people from migrating to ComponentConfig now (maybe can point to the above thread for more information about alternatives or discussions in the meantime).

@camilamacedo86
Copy link
Member Author

camilamacedo86 commented Jun 14, 2023

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.
See that we need to add a text to explain the deprecation reason as we did in the docs.

Thank you.

@laxmikantbpandhare
Copy link
Member

@camilamacedo86 - I was on leave and away from coding. I will look into it and merge it ASAP.

@aperullo
Copy link

What is the intended replacement for componentconfig we should be using instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
6 participants