-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
113 lines (89 loc) · 2.47 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
.PHONY:
install \
clean \
delete-deployment \
create-statefulset \
install-litmus \
install-prometheus
# Deploys the partner and test pods and the operator
install:
./scripts/fix-node-labels.sh
./scripts/deploy-multus-network.sh
./scripts/deploy-resource-quota.sh
./scripts/deploy-test-pods.sh
./scripts/deploy-statefulset-test-pods.sh
./scripts/deploy-pod-disruption-budget.sh
./scripts/deploy-test-crds.sh
./scripts/install-olm.sh
./scripts/deploy-community-operator.sh
./scripts/manage-service.sh deploy
./scripts/deploy-network-policies.sh
./scripts/install-prometheus-operator.sh
# creates a k8s cluster instance
rebuild-cluster:
./scripts/deploy-k8s-cluster.sh
# launch Vagrant env
vagrant-build:
mkdir -p config/vagrant/kubeconfig
vagrant plugin install vagrant-reload
cd config/vagrant;vagrant up;cd ../..
cp config/vagrant/kubeconfig/config ~/.kube/config
# destroy Vagrant env
vagrant-destroy:
cd config/vagrant;vagrant destroy
# suspend the vagrant vm
vagrant-suspend:
cd config/vagrant;vagrant suspend
# resume the vagrant vm
vagrant-resume:
cd config/vagrant;vagrant resume
# update the vagrant vm
vagrant-update:
cd config/vagrant;vagrant box update
# one command to recreate the environment
vagrant-recreate:
cd config/vagrant;vagrant destroy -f
make vagrant-build
# create a new docker configuration
new-docker-config:
./scripts/configure-docker.sh
# deploys the partner pods
install-partner-pods:
./scripts/deploy-debug-ds.sh
# Instal operator requires OLM and operator SDK
install-operator:
./scripts/deploy-operator.sh
install-community-operator:
./scripts/deploy-community-operator.sh
delete-community-operator:
./scripts/delete-community-operator.sh
# Install test CRDs
install-crds:
./scripts/deploy-test-crds.sh
install-litmus:
./scripts/install-litmus-operator.sh
install-prometheus :
./scripts/install-prometheus-operator.sh
delete-prometheus :
./scripts/delete-prometheus-operator.sh
# delete deployment pods
delete-deployment:
./scripts/delete-test-pods.sh
# create statefulset pods
create-statefulset:
./scripts/deploy-statefulset-test-pods.sh
delete-litmus:
./scripts/delete-litmus-operator.sh
# deletes the namespace completely
clean-all:
./scripts/clean-all.sh
# deletes, the partner and test pods and the operator
# pre-existing objects are preserved
clean:
./scripts/clean.sh
# deploy services
deploy-services:
./scripts/manage-service.sh deploy
# delete services
delete-services:
./scripts/manage-service.sh delete