-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I have followed the tutorial https://book.kubebuilder.io/multiversion-tutorial/tutorial to create multi-version API. In my project, current API version is v1beta1. I want to create v1 version API but failed.
kubebuilder create api --group test --version v1 --kind testCR
Create Resource [y/n]
y
Create Controller [y/n]
n
INFO[0004] Writing kustomize manifests for you to edit...
INFO[0004] Writing scaffold for you to edit...
Error: failed to create API: unable to scaffold with "base.go.kubebuilder.io/v3": error scaffolding API/controller: unable to load boilerplate: open hack/boilerplate.go.txt: no such file or directory
kubebuilder(CLI) version
Version: main.version{KubeBuilderVersion:"3.12.0", KubernetesVendor:"1.27.1", GitCommit:"b48f95cd5384eadcdfd02a47a02910f72ddc7ea8", BuildDate:"2023-09-06T06:04:11Z", GoOs:"linux", GoArch:"amd64"}
PROJECT version
version: "3"
Other version
go version go1.20.6 linux/amd64
Metadata
Metadata
Assignees
Labels
No labels