Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ EXTRA_TAGS ?=
PLATFORM ?= linux/amd64
CONTAINER_TOOL ?= docker

.PHONY: all generate deepcopy client lister informer manifests install-tools verify clean fmt vet tidy docker-build docker-push deploy install help show-vars
.PHONY: all generate deepcopy client lister informer manifests install-tools verify clean fmt vet tidy test docker-build docker-push deploy install help show-vars

all: generate manifests

Expand All @@ -44,6 +44,9 @@ vet:
tidy:
go mod tidy

test:
go test -race -count=1 -cover ./...

deepcopy:
@$(CONTROLLER_GEN) \
object:headerFile=$(BOILERPLATE) \
Expand Down Expand Up @@ -87,7 +90,7 @@ manifests:
verify:
@git diff --exit-code || (echo "Generated code is out of date. Run 'make generate'." && exit 1)

docker-build: manifests generate tidy fmt vet
docker-build: manifests generate tidy fmt vet test
$(CONTAINER_TOOL) buildx build \
--platform $(PLATFORM) \
-t $(IMAGE_NAME):$(VERSION) \
Expand Down