forked from volcano-sh/volcano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 794 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
35
BIN_DIR=_output/bin
RELEASE_VER=v0.2
kube-arbitrator: init
go build -o ${BIN_DIR}/kube-batchd ./cmd/kube-batchd/
verify: generate-code
hack/verify-gofmt.sh
hack/verify-golint.sh
hack/verify-gencode.sh
init:
mkdir -p ${BIN_DIR}
generate-code:
go build -o ${BIN_DIR}/deepcopy-gen ./cmd/deepcopy-gen/
${BIN_DIR}/deepcopy-gen -i ./pkg/apis/scheduling/v1alpha1/ -O zz_generated.deepcopy
images: kube-arbitrator
cp ./_output/bin/kube-batchd ./deployment/
docker build ./deployment/ -f ./deployment/Dockerfile -t kubesigs/kube-batchd:${RELEASE_VER}
rm -f ./deployment/kube-batchd
run-test:
hack/make-rules/test.sh $(WHAT) $(TESTS)
e2e: kube-arbitrator
hack/run-e2e.sh
coverage:
KUBE_COVER=y hack/make-rules/test.sh $(WHAT) $(TESTS)
clean:
rm -rf _output/
rm -f kube-arbitrator