-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use go install in 1.17+ (#123)
- Loading branch information
1 parent
e1e32e6
commit 8d57beb
Showing
2 changed files
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ kind-deploy: manager manifests docker-build-notest kind-start | |
.PHONY: kind-test | ||
kind-test: kind-deploy | ||
kubectl config set-context kind-kind | ||
go get github.com/onsi/ginkgo/ginkgo | ||
go install github.com/onsi/ginkgo/ginkgo@latest | ||
ginkgo -v ./controllers/... | ||
|
||
# Run integration tests on local KIND cluster | ||
|
@@ -124,7 +124,7 @@ docker-push: | |
.PHONY: controller-gen | ||
controller-gen: | ||
ifeq (, $(shell which controller-gen)) | ||
go get sigs.k8s.io/controller-tools/cmd/[email protected] | ||
go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
CONTROLLER_GEN=$(shell which controller-gen) | ||
else | ||
CONTROLLER_GEN=$(shell which controller-gen) | ||
|