You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/migration/migration_guide_gov3_to_gov4.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,16 @@ The recommended way to migrate a `go/v3` project is to create a new `go/v4` proj
10
10
copy over the API and the reconciliation code. The conversion will end up with a
11
11
project that looks like a native go/v4 project layout (latest version).
12
12
13
+
<asideclass="note warning">
14
+
<h1>Your Upgrade Assistant: The `alpha generate` command</h1>
15
+
16
+
To upgrade your project you might want to use the command `kubebuilder alpha generate [OPTIONS]`.
17
+
This command will re-scaffold the project using the current Kubebuilder version.
18
+
You can run `kubebuilder alpha generate --plugins=go/v4` to regenerate your project using `go/v4`
19
+
based in your [PROJECT][project-file] file config.
20
+
21
+
</aside>
22
+
13
23
However, in some cases, it's possible to do an in-place upgrade (i.e. reuse the go/v3 project layout, upgrading
14
24
the PROJECT file, and scaffolds manually). For further information see [Migration from go/v3 to go/v4 by updating the files manually][manually-upgrade]
The Kubebuilder CLI provides a new experimental helper `alpha generate` command to re-scaffold an existing project from the scratch using the current version of KubeBuilder binary available based on PROJECT config file.
5
+
Please note that all input utilized via the Kubebuilder tool is tracked in the PROJECT file ([example][example]).
6
+
This file is responsible for storing essential information, representing various facets of the Project such as its layout,
7
+
plugins, APIs, and more. ([More info][more-info]).
8
+
9
+
With the release of new plugin versions/layouts or even a new Kubebuilder CLI version with scaffold changes,
10
+
an easy way to upgrade your project is by re-scaffolding. This process allows users to employ tools like IDEs to compare
11
+
changes, enabling them to overlay their code implementation on the new scaffold or integrate these changes into their existing projects.
6
12
7
13
## When to use it ?
8
14
9
-
This command is useful when you want to upgrade an existing project to the latest version of the Kubebuilder project layout. It makes it easier for the users to migrate their operator projects to the new scaffolding.
15
+
This command is useful when you want to upgrade an existing project to the latest version of the Kubebuilder project layout.
16
+
It makes it easier for the users to migrate their operator projects to the new scaffolding.
10
17
11
18
## How to use it ?
12
19
20
+
**To upgrade the scaffold of your project to use a new plugin version:**
0 commit comments