blob: 95fcfddd00367df710a04cd1736bbcec3d09a2d3 (
plain)
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
|
#!/usr/bin/env bash
set +x
kubectl delete -n moon -f kubernetes/templates/moon_orchestrator.yaml
for i in $(kubectl get deployments -n moon | grep wrapper | cut -d " " -f 1 | xargs); do
kubectl delete deployments/$i -n moon;
done
for i in $(kubectl get deployments -n moon | grep interface | cut -d " " -f 1 | xargs); do
kubectl delete deployments/$i -n moon;
done
for i in $(kubectl get deployments -n moon | grep authz | cut -d " " -f 1 | xargs); do
kubectl delete deployments/$i -n moon;
done
for i in $(kubectl get services -n moon | grep wrapper | cut -d " " -f 1 | xargs); do
kubectl delete services/$i -n moon;
done
for i in $(kubectl get services -n moon | grep interface | cut -d " " -f 1 | xargs); do
kubectl delete services/$i -n moon;
done
for i in $(kubectl get services -n moon | grep authz | cut -d " " -f 1 | xargs); do
kubectl delete services/$i -n moon;
done
if [ "$1" = "build" ]; then
DOCKER_ARGS=""
cd moon_manager
docker build -t wukongsun/moon_manager:v4.3.1 . ${DOCKER_ARGS}
if [ "$2" = "push" ]; then
docker push wukongsun/moon_manager:v4.3.1
fi
cd -
cd moon_orchestrator
docker build -t wukongsun/moon_orchestrator:v4.3 . ${DOCKER_ARGS}
if [ "$2" = "push" ]; then
docker push wukongsun/moon_orchestrator:v4.3
fi
cd -
cd moon_interface
docker build -t wukongsun/moon_interface:v4.3 . ${DOCKER_ARGS}
if [ "$2" = "push" ]; then
docker push wukongsun/moon_interface:v4.3
fi
cd -
cd moon_authz
docker build -t wukongsun/moon_authz:v4.3 . ${DOCKER_ARGS}
if [ "$2" = "push" ]; then
docker push wukongsun/moon_authz:v4.3
fi
cd -
cd moon_wrapper
docker build -t wukongsun/moon_wrapper:v4.3 . ${DOCKER_ARGS}
if [ "$2" = "push" ]; then
docker push wukongsun/moon_wrapper:v4.3
fi
cd -
fi
|