X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fbin%2Funinstall;h=6cb3b3edbc93ca9c8b7c96aa1f2e414e86f4bced;hb=refs%2Fchanges%2F34%2F1234%2F9;hp=91e56e8cf8167342b2d74034b4759c10238cdc2b;hpb=88657efe9e96a83cda32bf8c642d1dd03013aad2;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/bin/uninstall b/ric-aux/80-Auxiliary-Functions/bin/uninstall index 91e56e8c..6cb3b3ed 100755 --- a/ric-aux/80-Auxiliary-Functions/bin/uninstall +++ b/ric-aux/80-Auxiliary-Functions/bin/uninstall @@ -17,32 +17,16 @@ ################################################################################ +COMPONENTS="dashboard message-router ves mrsub mc-stack portal aaf" +echo "Undeploying RIC aux components [$COMPONENTS]" -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -source $DIR/../etc/dashboard.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 -if [ -z "$RICAUX_NAMESPACE" ];then - NAMESPACE=$namespace -else - NAMESPACE=$RICAUX_NAMESPACE -fi - -RICAUX_COMPONENTS="dashboard message-router ves" - -echo "Undeploying RIC AUX components [$RICAUX_COMPONENTS]" -echo "Platform Namespace: $NAMESPACE" -echo "Helm Release Name: $RELEASE_NAME" - - - -for component in $RICAUX_COMPONENTS; do - helm delete --purge "${RELEASE_NAME}-$component" done