-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 788 Bytes
/
Makefile
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
agent ?= bin/ebpf-agent
manager ?= bin/ebpf-manager
ekctl ?= bin/ekctl
GO ?= go
.PHONY: build
build: clean
$(GO) build -o ${agent} ./cmd/agent
$(GO) build -o ${manager} ./cmd/manager
$(GO) build -o ${ekctl} ./cmd/root.go
.PHONY: image-build
image-build:
docker buildx build \
-f images/manager/Dockerfile \
-t ebpf-manager:0.1 \
.
.PHONY: kind-image-load
kind-image-load:
kind load docker-image ebpf-manager:0.1
.PHONY: deploy-manager
deploy-manager:
kubectl apply -f k8s/manager/manager-deployment.yaml
kubectl apply -f k8s/manager/manager-service.yaml
.PHONY: clean
clean:
rm -rf bin
.PHONY: generate-grpc-code
generate-grpc-code:
cd pkg/manager && protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative pb/manager.proto