-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathenvironment
More file actions
executable file
·59 lines (51 loc) · 877 Bytes
/
environment
File metadata and controls
executable file
·59 lines (51 loc) · 877 Bytes
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
#!/bin/bash
function usage() {
echo "Usage: $(basename $0) <command> [options]"
echo
echo "Commands:"
echo " pull - Pre-pull list of pre-defined images to kubernetes cluster"
echo " up - Builds and deploys all images to kubernetes cluster"
echo " down - Deletes all deployments"
echo
exit 1
}
function environment_login() {
./scripts/environment/login.sh
}
function environment_pull() {
./scripts/environment/pull.sh
}
function environment_patch() {
./scripts/environment/patch.sh
}
function environment_up() {
scripts/environment/up.sh
}
function environment_down {
scripts/environment/down.sh
}
if [ $# -lt 1 ]; then
usage
fi
command=$1
shift
case $command in
login)
environment_login
;;
pull)
environment_pull
;;
patch)
environment_patch
;;
up)
environment_up
;;
down)
environment_down
;;
*)
usage
;;
esac