Kubebuilder tool will scaffold the go/v3 plugin by default. This plugin is a composition of the plugins
base.go.kubebuilder.io/v3. By using you can scaffold the default project which is a helper to construct sets of controllers.
It basically scaffolds all the boilerplate code required to create and design controllers. Note that by following the quickstart you will be using this plugin.
If you are looking to scaffold Golang projects to develop projects using controllers
go/v3 is the default plugin there is no need to explicitly mention to Kubebuilder to use this plugin.
To create a new project with the
go/v3 plugin the following command can be used:
kubebuilder init --domain tutorial.kubebuilder.io --repo tutorial.kubebuilder.io/project
All the other subcommands supported by the go/v3 plugin can be executed similarly.
- Init -
kubebuilder init [OPTIONS]
- Edit -
kubebuilder edit [OPTIONS]
- Create API -
kubebuilder create api [OPTIONS]
- Create Webhook -
kubebuilder create webhook [OPTIONS]