forked from mojaloop/helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-charts-dep.sh
executable file
·80 lines (62 loc) · 1.69 KB
/
update-charts-dep.sh
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
#!/bin/bash
#
# Script to update all Helm Chart Dependencies
#
echo "Updating all Charts..."
# Function to check the last command's result exited with a value of 0, otherwise the script will exit with a 1
function checkCommandResult () {
if [ $? -eq 0 ]; then
echo ""
else
echo "Dep update failed...exiting. Please fix me!";
exit 1
fi
}
echo "Removing old charts..."
find ./ -name "charts"| xargs rm -Rf
echo "Updating Central-KMS..."
helm dep up ./centralkms
checkCommandResult
echo "Updating Forensic Logging Sidecar..."
helm dep up ./forensicloggingsidecar
checkCommandResult
echo "Updating Central-Ledger..."
helm dep up ./centralledger
checkCommandResult
echo "Updating Mock Pathfinder..."
helm dep up ./mockpathfinder
checkCommandResult
echo "Updating Central-End-User-Registry..."
helm dep up ./centralenduserregistry
checkCommandResult
echo "Updating Central-Directory..."
helm dep up ./centraldirectory
checkCommandResult
echo "Updating Central-Settlement..."
helm dep up ./centralsettlement
checkCommandResult
echo "Updating interop-switch..."
helm dep up ./interop-switch
checkCommandResult
echo "Updating ml-api-adapter..."
helm dep up ./ml-api-adapter
checkCommandResult
echo "Updating Email Notifier..."
helm dep up ./emailnotifier
checkCommandResult
echo "Central Event Processor..."
helm dep up ./centraleventprocessor
checkCommandResult
echo "Updating Central..."
helm dep up ./central
checkCommandResult
echo "Updating Mojaloop..."
helm dep up ./mojaloop
checkCommandResult
echo "\
Chart updates completed.\n \
Ensure you check the output for any errors. \n \
Ignore any http errors when connecting to \"local\" chart repository.\n \
\n \
Happy Helming!
"