Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make manifests is not working when only the controller is scaffolded by the create api #1767

Closed
camilamacedo86 opened this issue Nov 2, 2020 · 1 comment · Fixed by #1770
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@camilamacedo86
Copy link
Member

camilamacedo86 commented Nov 2, 2020

What broke

After creating a project and scaffold just the controller the make manifests target will fail :

  • kubebuilder int or kubebuilder init --plugins=go/v3-alpha
  • $ kubebuilder create api --group ship --version v1beta1 --kind Frigate
Create Resource [y/n]
n
Create Controller [y/n]
y

What did you expect to happen? What do you think went wrong?

The controller-gen is falling with the files scaffolded in this scenario:

Users/camilamacedo/go/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
main.go:33:2: package testv2/api/v1beta1 is not in GOROOT (/usr/local/go/src/testv2/api/v1beta1)
Error: not all generators ran successfully
run `controller-gen object:headerFile=hack/boilerplate.go.txt paths=./... -w` to see all available markers, or `controller-gen object:headerFile=hack/boilerplate.go.txt paths=./... -h` for usage
make: *** [Makefile:62: generate] Error 1
@camilamacedo86 camilamacedo86 added the kind/bug Categorizes issue or PR as related to a bug. label Nov 2, 2020
@prafull01
Copy link
Contributor

Just checked this one myself.
/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants