You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
447 B
25 lines
447 B
IMG ?= sw-block-operator:local
|
|
CONTROLLER_GEN ?= $(shell which controller-gen 2>/dev/null)
|
|
|
|
.PHONY: generate manifests build docker-build test
|
|
|
|
generate:
|
|
$(CONTROLLER_GEN) object paths="./api/..."
|
|
|
|
manifests:
|
|
$(CONTROLLER_GEN) crd paths="./api/..." output:crd:artifacts:config=config/crd/bases
|
|
|
|
build:
|
|
go build -o bin/operator .
|
|
|
|
docker-build:
|
|
docker build -t $(IMG) .
|
|
|
|
test:
|
|
go test ./... -v -count=1
|
|
|
|
fmt:
|
|
go fmt ./...
|
|
|
|
vet:
|
|
go vet ./...
|