-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (29 loc) · 1020 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
IMAGE_VERSION = latest
REGISTRY = netint
IMAGE = ${REGISTRY}/vpu-k8-device-plugin:${IMAGE_VERSION}
.PHONY: default build buildImage deploy undeploy upgrade dry-run
default: deploy
build:
cd source && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o netint-device-plugin main.go server.go
buildImage:
@if [ -f source/netint-device-plugin ]; then\
cp source/netint-device-plugin docker/plugin/;\
cd docker/plugin && docker build -t ${IMAGE} .;\
rm -f docker/plugin/netint-device-plugin;\
fi
@if [ ! -f source/netint-device-plugin ]; then\
echo "Error: Missing NETINT Device Plugin";\
echo "Please build the Device Plugin, then rebuild the image";\
fi
deploy:
helm install netint deploy/helm/netint
helm install quadra deploy/helm/quadra
undeploy:
helm uninstall netint
helm uninstall quadra
upgrade:
helm upgrade netint deploy/helm/netint
helm upgrade quadra deploy/helm/quadra
dry-run:
helm install netint deploy/helm/netint --dry-run
helm install quadra deploy/helm/quadra --dry-run