-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
86 lines (71 loc) · 2.13 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
.PHONY: build
build:
go build -o crossover .
.PHONY: image
image: image/build image/push
.PHONY: image/build
image/build:
docker build -t mumoshu/crossover:canary-$(shell git rev-parse --short HEAD) .
.PHONY: image/push
image/push:
docker push mumoshu/crossover:canary-$(shell git rev-parse --short HEAD)
gen-mytoken:
kubectl get secret default-token-lggrz -o jsonpath={.data.token} | base64 -D > mytoken
gen-configmap:
@helm fetch stable/envoy
@helm template envoy*.tgz --name incendiary-shark -x templates/xds.configmap.yaml -f example/values.yaml \
--set services.podinfo.backends.eerie-octopus-podinfo.weight=100 \
--set services.podinfo.backends.bold-olm-podinfo.weight=0
.PHONY: run/onetime
run/onetime: build
./crossover \
--namespace default \
--token-file ./mytoken \
--configmap incendiary-shark-envoy-xds \
--onetime \
--insecure \
--apiserver "https://kubernetes.docker.internal:6443" \
--output-dir "./test/out"
.PHONY: run/watch
run/watch: build
./crossover \
--namespace default \
--token-file ./mytoken \
--configmap incendiary-shark-envoy-xds \
--insecure \
--apiserver "https://kubernetes.docker.internal:6443" \
--watch \
--output-dir "./test/out"
.PHONY: run/watch-smi
run/watch-smi: build
./crossover \
--namespace default \
--token-file ./mytoken \
--configmap envoy-xds \
--trafficsplit podinfo \
--insecure \
--apiserver "https://kubernetes.docker.internal:6443" \
--watch \
--smi \
--output-dir "./test/out"
.PHONY: watch
watch:
@curl -s -k -H "Authorization: Bearer $(shell cat ./mytoken)" https://kubernetes.docker.internal:6443/api/v1/watch/namespaces/default/configmaps/incendiary-shark-envoy-xds
.PHONY: e2e/h2c
e2e/h2c:
USE_H2C=1 ./e2e/run-testsuite.sh
.PHONY: e2e/h1
e2e/h1:
./e2e/run-testsuite.sh
.PHONY: e2e/h2c-smi
e2e/h2c-smi:
USE_H2C=1 USE_SMI=1 ./e2e/run-testsuite.sh
.PHONY: e2e/h1-smi
e2e/h1-smi:
USE_SMI=1 ./e2e/run-testsuite.sh
.PHONY: e2e/h1-smi-flagger
e2e/h1-smi-flagger:
USE_FLAGGER=1 USE_SMI=1 ./e2e/run-testsuite.sh
.PHONY: e2e/jplot
e2e/jplot:
./e2e/run.sh "tail -n 100 -f e2e.aggregate.log | ./e2e/tools.sh jplot"