forked from kyma-project/eventing-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 1.37 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
# =============================================================================
# Loadtest
# =============================================================================
.PHONY: loadtest-deploy
loadtest-deploy:
@kubectl apply -k resources/loadtest/base
.PHONY: loadtest-deploy-ko
loadtest-deploy-ko:
@kustomize build resources/loadtest/ko | ko apply -f -
.PHONY: loadtest-start
loadtest-start:
@kubectl scale deployment -n eventing-test loadtest-publisher --replicas 1
.PHONY: loadtest-stop
loadtest-stop:
@kubectl scale deployment -n eventing-test loadtest-publisher --replicas 0
.PHONY: loadtest-delete
loadtest-delete:
@kubectl delete -k resources/loadtest/base
@kubectl delete subscriptions.eventing.kyma-project.io -n eventing-test -l 'app=loadtest' || true
# =============================================================================
# Validationtest
# =============================================================================
.PHONY: validationtest-deploy
validationtest-deploy:
@kubectl apply -k resources/validationtest/base
.PHONY: validationtest-start
validationtest-start:
@kubectl scale deployment -n eventing-test publisher --replicas 1
.PHONY: validationtest-stop
validationtest-stop:
@kubectl scale deployment -n eventing-test publisher --replicas 0
.PHONY: validationtest-delete
validationtest-delete:
@kubectl delete -k resources/validationtest/base