Skip to content

Commit

Permalink
Merge pull request #2104 from hwdef/fix-controller-gen-install
Browse files Browse the repository at this point in the history
Modify the way to install the controller-gen
  • Loading branch information
volcano-sh-bot authored Mar 18, 2022
2 parents b38e684 + 70dbaa1 commit ff87258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ifeq (, $(shell which controller-gen))
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
cd $$CONTROLLER_GEN_TMP_DIR ;\
go mod init tmp ;\
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.0 ;\
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.0 ;\
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
}
CONTROLLER_GEN=$(GOBIN)/controller-gen
Expand Down

0 comments on commit ff87258

Please sign in to comment.