forked from mojaloop/helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lint-charts.sh
executable file
·75 lines (65 loc) · 1.76 KB
/
lint-charts.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
#!/usr/bin/env bash
#
# Script to Lint all charts
#
echo "Linting all Charts..."
set -e
LOCAL_HELM_MOJALOOP_REPO_URI=${HELM_MOJALOOP_REPO_URI:-'https://docs.mojaloop.io/helm/repo'}
trap 'echo "Command failed...exiting. Please fix me!"' ERR
if [ "$1" ]; then
declare -a charts=("$1")
else
declare -a charts=(
example-mojaloop-backend
ml-testing-toolkit
ml-testing-toolkit-cli
sdk-scheme-adapter/chart-service
sdk-scheme-adapter
mojaloop-ttk-simulators/chart-sim1
mojaloop-ttk-simulators/chart-sim2
mojaloop-ttk-simulators/chart-sim3
mojaloop-ttk-simulators
eventstreamprocessor
simulator
monitoring/promfana
monitoring/efk
account-lookup-service
als-oracle-pathfinder
centralkms
# forensicloggingsidecar # No longer supported
centralledger
# centralenduserregistry # No longer supported
centralsettlement
emailnotifier
centraleventprocessor
central
ml-api-adapter
quoting-service
finance-portal
finance-portal-settlement-management
transaction-requests-service
bulk-centralledger/
bulk-api-adapter/
mojaloop-bulk/
mojaloop-simulator
mojaloop
# kube-system/ntpd/ # No longer supported
ml-operator
thirdparty/chart-auth-svc
thirdparty/chart-consent-oracle
thirdparty/chart-tp-api-svc
)
fi
echo "\n"
for chart in "${charts[@]}"
do
echo "---=== Linting $chart ===---"
helm lint $chart
done
echo "\
Chart linting 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!
"