+COMPONENTS="extsvcplt"
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+echo "Undeploying RIC platform components [$COMPONENTS]"
-source $DIR/../etc/ext.conf
-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
+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
-RICAUX_COMPONENTS="ext"
-
-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
+