chore: use go install in 1.17+ (#123)
This commit is contained in:
parent
e1e32e61c1
commit
8d57beb5ba
@ -21,7 +21,6 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- <<: *golang_image
|
- <<: *golang_image
|
||||||
working_directory: /go/src/github.com/ory/hydra-maester
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -30,7 +29,6 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- <<: *golang_image
|
- <<: *golang_image
|
||||||
working_directory: /go/src/github.com/ory/hydra-maester
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -68,7 +66,6 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
docker:
|
docker:
|
||||||
- <<: *golang_image
|
- <<: *golang_image
|
||||||
working_directory: /go/src/github.com/ory/hydra-maester
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
4
Makefile
4
Makefile
@ -54,7 +54,7 @@ kind-deploy: manager manifests docker-build-notest kind-start
|
|||||||
.PHONY: kind-test
|
.PHONY: kind-test
|
||||||
kind-test: kind-deploy
|
kind-test: kind-deploy
|
||||||
kubectl config set-context kind-kind
|
kubectl config set-context kind-kind
|
||||||
go get github.com/onsi/ginkgo/ginkgo
|
go install github.com/onsi/ginkgo/ginkgo@latest
|
||||||
ginkgo -v ./controllers/...
|
ginkgo -v ./controllers/...
|
||||||
|
|
||||||
# Run integration tests on local KIND cluster
|
# Run integration tests on local KIND cluster
|
||||||
@ -124,7 +124,7 @@ docker-push:
|
|||||||
.PHONY: controller-gen
|
.PHONY: controller-gen
|
||||||
controller-gen:
|
controller-gen:
|
||||||
ifeq (, $(shell which controller-gen))
|
ifeq (, $(shell which controller-gen))
|
||||||
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.5.0
|
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.5.0
|
||||||
CONTROLLER_GEN=$(shell which controller-gen)
|
CONTROLLER_GEN=$(shell which controller-gen)
|
||||||
else
|
else
|
||||||
CONTROLLER_GEN=$(shell which controller-gen)
|
CONTROLLER_GEN=$(shell which controller-gen)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user