Skip to content

Commit

Permalink
Merge pull request #438 from fluxcd/pin-envtest
Browse files Browse the repository at this point in the history
Pin envtest to Kubernetes v1.25
  • Loading branch information
stefanprodan authored Dec 15, 2022
2 parents f9340b5 + dfd4199 commit 51b8725
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ GO_TEST_ARGS ?= -race
# Architecture to use envtest with
ENVTEST_ARCH ?= amd64

# Kubernetes versions to use envtest with
ENVTEST_KUBERNETES_VERSION?=1.25

all:
$(MAKE) $(targets)

Expand Down Expand Up @@ -67,7 +70,6 @@ controller-gen: ## Download controller-gen locally if necessary.
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected])

ENVTEST_ASSETS_DIR=$(shell pwd)/testbin
ENVTEST_KUBERNETES_VERSION?=latest
install-envtest: setup-envtest
mkdir -p ${ENVTEST_ASSETS_DIR}
$(ENVTEST) use $(ENVTEST_KUBERNETES_VERSION) --arch=$(ENVTEST_ARCH) --bin-dir=$(ENVTEST_ASSETS_DIR)
Expand Down

0 comments on commit 51b8725

Please sign in to comment.