Discover an incredible new feature for maintaining your Kubebuilder-built projects, crafted by a student following up the Google Summer of Code 2023 schedule.

This year, we submitted a project for the Google Summer Program 2023. Although our project was not accepted into the program, the student, Junhao Liu, agreed to carry out the project following the same timelines and guidelines. We are proud to present the results of Junhao’s dedication. His contributions can be found in the latest release of Kubebuilder, v3.12.0. Below are the details:

🚀  Your Upgrade Assistant: The New ‘Alpha Generate’ Command in Kubebuilder


Please note that all input utilized via the Kubebuilder tool is tracked in the PROJECT file (example). This file is responsible for storing essential information, representing various facets of the Project such as its layout, plugins, APIs, and more. (More info)

With the release of new plugin versions/layouts or even a new Kubebuilder CLI version with scaffold changes, an easy way to upgrade your project is by re-scaffolding. This process allows users to employ tools like IDEs to compare changes, enabling them to overlay their code implementation on the new scaffold or integrate these changes into their existing project. 

Therefore, as part of this initiative, a new alpha command named “generate” has been introduced. Its primary function is to re-scaffold the project based on the information provided in the PROJECT file. Example:

kubebuilder alpha generate \   --input-dir=/path/to/existing/project \    --output-dir=/path/to/new/project

📌 If you want to know more about:

🎉  I’d like to extend my heartfelt congratulations to the student responsible for this achievement, @yyy1000

Special thanks to @varshaprasad96 and @Kavinjsir for their invaluable mentorship and guidance throughout the project.

Leave a comment