aboutsummaryrefslogtreecommitdiffstats
path: root/infra-healthcheck/scripts/check_onap_helm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'infra-healthcheck/scripts/check_onap_helm.sh')
-rw-r--r--infra-healthcheck/scripts/check_onap_helm.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/infra-healthcheck/scripts/check_onap_helm.sh b/infra-healthcheck/scripts/check_onap_helm.sh
deleted file mode 100644
index 27f8094..0000000
--- a/infra-healthcheck/scripts/check_onap_helm.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-echo "------------------------------------------------------------------------"
-echo "------------------- ONAP Check helm charts ----------------------------"
-echo "------------------------------------------------------------------------"
-code=0
-nb_charts=$(helm ls |awk {'print $1'}|grep -v NAME |wc -l)
-nb_failed_charts=0
-list_failed_charts="[$(helm ls |grep -v DEPLOYED |grep -v NAME |awk '{print $1}')]"
-nice_list=$(echo $list_failed_charts |sed -e "s/ /,/g")
-
-# List Helm chart and get their status
-for i in $(helm ls |awk {'print $1'}|grep -v NAME);do
- echo "Chart $i"
- status=$(helm status $i |grep STATUS:)
- echo ${status}
- if [ "${status}" != "STATUS: DEPLOYED" ]; then
- echo "Chart problem"
- helm status $i -o yaml
- code=1
- let "nb_failed_charts++"
- fi
- echo "--------------------------------------------------------------------"
-done
-
-echo "------------------------------------------------"
-echo "------- ONAP Helm tests ------------------------"
-echo "------------------------------------------------"
-echo ">>> Nb Helm Charts: ${nb_charts}"
-echo ">>> Nb Failed Helm Charts: ${nb_failed_charts}"
-echo ">>> List of Failed Helm Charts: ${nice_list}"
-echo "------------------------------------------------"
-echo "------------------------------------------------"
-echo "------------------------------------------------"
-
-exit $code