Skip to content

Commit

Permalink
chore: make it deploy k8s & operator faster
Browse files Browse the repository at this point in the history
  • Loading branch information
nadav3396 committed Jul 28, 2024
1 parent 679bcfe commit cba30bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ e2e-tests:
# (i.e. docker build --platform linux/arm64 ). However, you must enable docker buildKit for it.
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
.PHONY: docker-build
docker-build: test ## Build docker image with the manager.
docker-build: test docker-build-without-tests ## Build docker image with the manager.
echo "Finished building docker image"

.PHONY: docker-build-without-tests
docker-build-without-tests: # This is used by our IT because we dont want to run the tests there
docker build -t ${CONTROLLER_IMG} --build-arg "target_platform=$(TARGET_PLATFORM)" -f controller/Dockerfile controller
docker build -t ${PROXY_IMG} --build-arg "target_platform=$(TARGET_PLATFORM)" -f telemetryproxy/Dockerfile telemetryproxy

Expand Down Expand Up @@ -186,4 +190,4 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) $(GOCMD) install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) $(GOCMD) install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b

0 comments on commit cba30bf

Please sign in to comment.