X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fbin%2Funinstall;h=2f266912d33f0be0b0490864a18ad9ccf199970e;hb=2df61c2fcf64b32ecf7f064ef9cbbe6b54a15bc0;hp=fcd1761ac27beb793f9284d82b4a495d40ffd464;hpb=3803859c341dc62bdcd79ba94be585592a94672b;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/bin/uninstall b/ric-aux/80-Auxiliary-Functions/bin/uninstall index fcd1761a..2f266912 100755 --- a/ric-aux/80-Auxiliary-Functions/bin/uninstall +++ b/ric-aux/80-Auxiliary-Functions/bin/uninstall @@ -17,26 +17,16 @@ ################################################################################ +COMPONENTS="dashboard message-router ves mrsub" +echo "Undeploying RIC aux components [$COMPONENTS]" -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -source $DIR/../etc/aux.conf +for component in $COMPONENTS; do + RELEASE_LIST=$(helm list | grep "$component" | awk '{print $1}') + if [ ! -z "$RELEASE_LIST" ];then + helm delete --purge $RELEASE_LIST + fi -if [ -z "$RICAUX_RELEASE_NAME" ];then - RELEASE_NAME=$helm_release_name -else - RELEASE_NAME=$RICAUX_RELEASE_NAME -fi - -RICAUX_COMPONENTS="dashboard message-router ves kong-aux" - -echo "Undeploying RIC AUX components [$RICAUX_COMPONENTS]" -echo "Helm Release Name: $RELEASE_NAME" - - - -for component in $RICAUX_COMPONENTS; do - helm delete --purge "${RELEASE_NAME}-$component" done