1
- # go/v4 (go.kubebuilder.io/v4)
1
+ # [ Default Scaffold ] go/v4 (go.kubebuilder.io/v4)
2
2
3
3
Kubebuilder will scaffold using the ` go/v4 ` plugin only if specified when initializing the project.
4
- This plugin is a composition of the plugins ` kustomize.common.kubebuilder.io/v2-alpha ` and ` base.go.kubebuilder.io/v4 ` .
4
+ This plugin is a composition of the plugins ` kustomize.common.kubebuilder.io/v2 ` and ` base.go.kubebuilder.io/v4 ` .
5
5
It scaffolds a project template that helps in constructing sets of [ controllers] [ controller-runtime ] .
6
6
7
7
It scaffolds boilerplate code to create and design controllers.
@@ -17,15 +17,7 @@ under the [testdata][testdata] directory on the root directory of the Kubebuilde
17
17
18
18
## When to use it ?
19
19
20
- - If you are looking to scaffold Golang projects to develop projects using [ controllers] [ controller-runtime ]
21
- - If you are looking to experiment with the future default scaffold that will be provided by Kubebuilder CLI
22
- - If your local environment is Apple Silicon (` darwin/arm64 ` )
23
- - If you are looking to use [ kubernetes-sigs/kustomize] [ kustomize ] v5
24
- - If you are looking to have your project update with the latest version available
25
- - if you are not targeting k8s versions < ` 1.16 ` and ` 1.20 ` if you are using webhooks
26
- - If you are looking to work on with scaffolds which are compatible with k8s ` 1.25+ `
27
- - If you are looking for the new layout following the [ Standard Go Project Layout] [ standard-go-project ] where
28
- the "api(s)" are scaffold under the ` api ` directory, "controller(s)" under ` internal ` , and the ` main.go ` under ` cmd `
20
+ If you are looking to scaffold Golang projects to develop projects using [ controllers] [ controller-runtime ]
29
21
30
22
<aside class =" note " >
31
23
@@ -54,7 +46,7 @@ kubebuilder init --domain tutorial.kubebuilder.io --repo tutorial.kubebuilder.io
54
46
## Further resources
55
47
56
48
- To see the composition of plugins, you can check the source code for the Kubebuilder [ main.go] [ plugins-main ] .
57
- - Check the code implementation of the [ base Golang plugin ` base.go.kubebuilder.io/v3 ` ] [ v3 -plugin] .
49
+ - Check the code implementation of the [ base Golang plugin ` base.go.kubebuilder.io/v4 ` ] [ v4 -plugin] .
58
50
- Check the code implementation of the [ Kustomize/v2 plugin] [ kustomize-plugin ] .
59
51
- Check [ controller-runtime] [ controller-runtime ] to know more about controllers.
60
52
@@ -65,3 +57,4 @@ kubebuilder init --domain tutorial.kubebuilder.io --repo tutorial.kubebuilder.io
65
57
[ kustomize-plugin ] : ../plugins/kustomize-v2.md
66
58
[ kustomize ] : https://github.com/kubernetes-sigs/kustomize
67
59
[ standard-go-project ] : https://github.com/golang-standards/project-layout
60
+ [ v4-plugin ] : https://github.com/kubernetes-sigs/kubebuilder/tree/master/pkg/plugins/golang/v4
0 commit comments