How to regenerate scaffolding? #2864
-
Let's say I want to pick up the newest scaffolding after upgrading kubebuilder, is there a command I can run to regenerate the scaffolding? I tried:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
All commands executed with the tool (data) are tracked in the PROJECT file. We would have an alpha command to try to make it where we could inform via a flag the PROJECT file and the --plugins which we would like to use to do the re-scaffold. Then it would mean for example: $ kubebuilder alpha scaffold --project-config= --plugins=go/v4,grafana/alphav1 --output=path That would result in: That also can lead to future changes/additions to the PROJECT file in case we discover that we are missing info to be tracked there. Would you like to work on this one? See #2068 . I am adding this idea suggestion there as well. |
Beta Was this translation helpful? Give feedback.
-
Closing since it is answered. |
Beta Was this translation helpful? Give feedback.
All commands executed with the tool (data) are tracked in the PROJECT file.
(ihmo) it would be desirable to have a command that re-scaffolds all based on that so it could help in the migration process ( like I want to upgrade my project to the latest versions changes )
We would have an alpha command to try to make it where we could inform via a flag the PROJECT file and the --plugins which we would like to use to do the re-scaffold. Then it would mean for example:
$ kubebuilder alpha scaffold --project-config= --plugins=go/v4,grafana/alphav1 --output=path
That would result in:
-> create a directory with the project name
-> call the tool to init the project with the plugins --plugins=go/v4…