Skip to content

Commit

Permalink
pin envtest version in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac committed Mar 28, 2024
1 parent 7bc6552 commit 99f2458
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ endif
all: manager

# Run tests
ENVTEST_VERSION ?= release-0.17
ENVTEST_ASSETS_DIR = $(shell pwd)/testbin
ENVTEST_K8S_VERSION ?= 1.24.1
GOOS=$(shell go env GOOS)
Expand All @@ -44,13 +45,13 @@ test-setup:
curl -L -O "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-$(ENVTEST_K8S_VERSION)-$(GOOS)-$(GOARCH).tar.gz"
tar -zxvf kubebuilder-tools-$(ENVTEST_K8S_VERSION)-$(GOOS)-$(GOARCH).tar.gz
mv kubebuilder $(KUBEBUILDER_ASSETS_ROOT)
export KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS); go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
export KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS); go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION)

test-setup-ci:
curl -L -O "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-$(ENVTEST_K8S_VERSION)-$(GOOS)-$(GOARCH).tar.gz"
tar -xvf kubebuilder-tools-$(ENVTEST_K8S_VERSION)-$(GOOS)-$(GOARCH).tar.gz
mv kubebuilder $(KUBEBUILDER_ASSETS_ROOT)
export KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS); go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
export KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS); go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION)

e2e: deploy
kubectl create configmap crocodile-stress-test --from-file e2e/test.js
Expand Down

0 comments on commit 99f2458

Please sign in to comment.