Skip to content

kubebuilder create api failed #2526

Closed Answered by camilamacedo86
bestgopher asked this question in Support
Discussion options

You must be logged in to vote

H @bestgopher,

It seems that you were using an old version release. However, the problem here is that we are looking for the controller gen in the bin and you have it globally. You probably also customize/change the Makefile so it is no longer working.

So you can check here the current implementation ( from the latest release 3.5.0 ):

.PHONY: controller-gen
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.
$(CONTROLLER_GEN): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)

Regards customiz…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants