Add one-click deployment scripts for deploying INFRA PLT and AUX
[it/dep.git] / bin / undeploy-ric-infra
old mode 100644 (file)
new mode 100755 (executable)
similarity index 69%
rename from etc/ric-platform.conf
rename to bin/undeploy-ric-infra
index 1054892..ea8ab35
@@ -1,3 +1,4 @@
+#!/bin/bash
 ################################################################################
 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
 #   Copyright (c) 2019 Nokia.                                                  #
 #   limitations under the License.                                             #
 ################################################################################
 
-# -------------------  RIC PLATFORM ---------------------------------------
+# This script deploys RIC auxiliary function components automatically
 
-# release name helm will use to deploy RIC platform componenets
-ric_platform_helm_release_name=r0
 
-# namespace that helm will use to deploy RIC
-ric_platform_namespace=ricplt
+ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+
+source $ROOT_DIR/../etc/ric.conf
+source $ROOT_DIR/../etc/ric-infra.conf
+
+
+export RICINFRA_RELEASE_NAME=$helm_release_name
+
+export RICPLT_NAMESPACE=$plt_namespace
+export RICXAPP_NAMESPACE=$xapp_namespace
+export RICAUX_NAMESPACE=$aux_namespace
+export RICINFRA_NAMESPACE=$infra_namespace
+
+
+for component in $ROOT_DIR/../ric-infra/*/; do
+    # Will print */ if no directories are available
+    . $component/bin/uninstall
+
+done
 
 
-#