Back to Kubebuilder

go/v4 (go.kubebuilder.io/v4)

docs/book/src/plugins/available/go-v4-plugin.md

4.13.12.2 KB
Original Source

go/v4 (go.kubebuilder.io/v4)

(Default Scaffold)

Kubebuilder will scaffold using the go/v4 plugin only if specified when initializing the project. This plugin is a composition of the kustomize.common.kubebuilder.io/v2 and base.go.kubebuilder.io/v4 plugins using the Bundle Plugin. It scaffolds a project template that helps in constructing sets of controllers.

By following the quickstart and creating any project, you will be using this plugin by default.

<aside class="note"> <h1>Examples</h1>

You can check samples using this plugin by looking at the project-v4-<options> projects under the testdata directory on the root directory of the Kubebuilder project.

</aside>

How to use it ?

To create a new project with the go/v4 plugin the following command can be used:

sh
kubebuilder init --domain tutorial.kubebuilder.io --repo tutorial.kubebuilder.io/project --plugins=go/v4

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