-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 767 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CONTROLLER_GEN ?= controller-gen
IMG ?= kplane-exe-dev:latest
.PHONY: manifests
manifests: ## Generate CRD and RBAC manifests from kubebuilder markers.
$(CONTROLLER_GEN) crd rbac:roleName=manager-role paths="./..." \
output:crd:artifacts:config=config/crd \
output:rbac:artifacts:config=config/rbac
.PHONY: generate
generate: ## Regenerate deepcopy methods.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
.PHONY: build
build: ## Build the manager binary.
go build -mod=vendor -o bin/manager ./cmd/...
.PHONY: vet
vet: ## Run go vet.
go vet ./...
.PHONY: vendor
vendor: ## Tidy and vendor dependencies.
go mod tidy && go mod vendor
.PHONY: docker-build
docker-build: ## Build the controller image.
docker build -t $(IMG) .