Viewing legacy documentation for Kubebuilder, check out the latest documentation instead.

[Deprecated] go/v3 (

Kubebuilder tool will scaffold the go/v3 plugin by default. This plugin is a composition of the plugins and 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.

When to use it ?

If you are looking to scaffold Golang projects to develop projects using controllers

How to use it ?

As 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 --plugins=`go/v3` --domain --repo

All the other subcommands supported by the go/v3 plugin can be executed similarly.

Subcommands supported by the plugin

  • Init - kubebuilder init [OPTIONS]
  • Edit - kubebuilder edit [OPTIONS]
  • Create API - kubebuilder create api [OPTIONS]
  • Create Webhook - kubebuilder create webhook [OPTIONS]

Further resources