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=9ab2775dfcc58235ee828bcf23624915c991e510;hpb=7f1e409379856025977fc8a6ea04ddb215f21a13;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/bin/uninstall b/ric-aux/80-Auxiliary-Functions/bin/uninstall index 9ab2775d..2f266912 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" +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" - -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