-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
119 lines (104 loc) · 1.7 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Build binary and image.
#
# Example:
# make
# make all
all: build
.PHONY: all
# Build the binaries
#
# Example:
# make build
build:
cd hack/build && sh build.sh
.PHONY: build
# Build the docker image
#
# Example:
# make image
image:
docker/build-image.sh
.PHONY: image
# Push the docker image
#
# Example:
# make push
push:
docker/push-image.sh
.PHONY: push
# generate code(zz_generated*)
# generate go mod list to vendor
# Example:
# make generate
generate:
operator-sdk generate k8s
operator-sdk generate openapi
go mod vendor
.PHONY: generate
# install to kubernetes
# Example:
# make install
install:
deploy/install.sh
.PHONY: install
# uninstall from kubernetes
# Example:
# make uninstall
uninstall:
deploy/uninstall.sh
.PHONY: uninstall
# start local test
# Example:
# make start-local
start-local:
test/local/install.sh
.PHONY: start-local
# stop local test
# Example:
# make stop-local
stop-local:
test/local/uninstall.sh
.PHONY: stop-local
# start pvc test
# Example:
# make start-pvc
start-pvc:
test/pvc/install.sh
.PHONY: start-pvc
# stop pvc test
# Example:
# make stop-pvc
stop-pvc:
test/pvc/uninstall.sh
.PHONY: stop-pvc
# start ingress test
# Example:
# make start-ingress
start-ingress:
test/ingress/install.sh
.PHONY: start-ingress
# stop ingress test
# Example:
# make stop-ingress
stop-ingress:
test/ingress/uninstall.sh
.PHONY: stop-ingress
# start manager test
# Example:
# make start-manager
start-manager:
test/manager/install.sh
.PHONY: start-manager
# stop manager test
# Example:
# make stop-manager
stop-manager:
test/manager/uninstall.sh
.PHONY: stop-manager
# clean all binaries
#
# Example:
# make clean
clean:
rm -rf ./bin
.PHONY: clean