From fcb1017bc84d189ec214d45d7e31b67da6620046 Mon Sep 17 00:00:00 2001 From: Christoph Barbian Date: Wed, 23 Aug 2023 10:05:12 +0200 Subject: [PATCH] Makefile: fix envtest permissions --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 63b7aa0..59e30fa 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ docker-build: test ## Build docker image with the manager. docker-push: ## Push docker image with the manager. docker push ${IMG} -# PLATFORMS defines the target platforms for the manager image be build to provide support to multiple +# PLATFORMS defines the target platforms for the manager image be build to provide support to multiple # architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to: # - able to use docker buildx . More info: https://docs.docker.com/build/buildx/ # - have enable BuildKit, More info: https://docs.docker.com/develop/develop-images/build_enhancements/ @@ -157,6 +157,7 @@ envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. $(ENVTEST): $(LOCALBIN) test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest ENVTESTDIR=$$($(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path) ;\ + chmod -R u+w $$ENVTESTDIR ;\ rm -f $(LOCALBIN)/k8s/current ;\ ln -s $$ENVTESTDIR $(LOCALBIN)/k8s/current