-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (37 loc) · 1.22 KB
/
Makefile
File metadata and controls
55 lines (37 loc) · 1.22 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
IMG ?= ghcr.io/mchenetz/hearth-controller:latest
.PHONY: generate manifests fmt vet test build build-gateway build-flow-gateway run install uninstall deploy undeploy helm-lint smoke-e2e kind-e2e spec-conformance
generate:
go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile=/dev/null paths=./api/...
manifests:
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd rbac:roleName=hearth-manager-role paths=./... output:crd:artifacts:config=config/crd/bases output:rbac:artifacts:config=config/rbac
fmt:
go fmt ./...
vet:
go vet ./...
test:
go test ./...
build:
go build -o bin/hearth-controller ./main.go
build-gateway:
go build -o bin/hearth-tool-gateway ./cmd/tool-gateway/main.go
build-flow-gateway:
go build -o bin/hearth-flow-gateway ./cmd/flow-gateway/main.go
run:
go run ./main.go
helm-lint:
helm lint charts/hearth
smoke-e2e:
./hack/smoke-e2e.sh
kind-e2e:
./hack/kind-e2e.sh
spec-conformance:
./hack/spec-conformance.sh
install:
kubectl apply -k config/default
uninstall:
kubectl delete -k config/default
deploy:
cd config/manager && kustomize edit set image ghcr.io/mchenetz/hearth-controller=${IMG}
kubectl apply -k config/default
undeploy:
kubectl delete -k config/default