Kubebuilder inits in go1.16 and pkgs miss methods later on #2518
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/support
Categorizes issue or PR as a support question.
triage/needs-information
Indicates an issue needs more information in order to work on it.
What broke? What's expected?
I am followin the basic tutorial documentation, just instead of creating a CronJob I try it out with a deployment. It initiates the env with go1.16 in
go.mod
.Later on, when running
kubebuilder create api --group apps --version v1 --kind Deployment
I get errors saying Deployment struct is missing DeepCopy method.When changing the version in
go.mod
and runninggo mod tidy
it fixes all issues.Reproducing this issue
kubebuilder init --domain tutorial.kubebuilder.io --repo tutorial.kubebuilder.io/project
kubebuilder create api --group apps --version v1 --kind Deployment
KubeBuilder (CLI) Version
Version: main.version{KubeBuilderVersion:"v3.0.0-alpha.0-411-gf4dbb5c8", KubernetesVendor:"unknown", GitCommit:"f4dbb5c82e436c6943d81abb2bf0b5b2b3478921", BuildDate:"2021-12-14T07:10:30Z", GoOs:"linux", GoArch:"amd64"}
PROJECT version
3
Plugin versions
No response
Other versions
go version go1.17.7 linux/amd64
Extra Labels
No response
The text was updated successfully, but these errors were encountered: