[submodule "smo-install/multicloud-k8s"]
path = smo-install/multicloud-k8s
url = https://github.com/onap/multicloud-k8s.git
+[submodule "ranpm"]
+ path = ranpm
+ url = https://gerrit.nordix.org/oransc/nonrtric/plt/ranpm
<!---
Copyright (c) 2019 AT&T Intellectual Property.
+Modifications Copyright (C) 2023 Nordix.
Licensed under the Creative Commons License, Attribution 4.0 Intl.
(the"Documentation License"); you may not use this documentation
```sh
$ . ./undeploy-ric-aux
```
+
+### NOTE: To Deploy RANPM
+RANPM helm charts are integrated as a submodule in this repository. To deploy RANPM function set installRanpm: true in the RECEPIE_EXAMPLE file as below:
+
+nonrtric:
+ installPms: true
+ installA1controller: true
+ installA1simulator: true
+ installControlpanel: true
+ installInformationservice: true
+ installRappcatalogueservice: true
+ installRappcatalogueEnhancedservice: true
+ installNonrtricgateway: true
+ installKong: false
+ installDmaapadapterservice: true
+ installDmaapmediatorservice: true
+ installHelmmanager: true
+ installOruclosedlooprecovery: true
+ installOdusliceassurance: true
+ installCapifcore: true
+ installRanpm: true
+
+ volume1:
+ # Set the size to 0 if you do not need the volume (if you are using Dynamic Volume Provisioning)
+ size: 2Gi
+ storageClassName: pms-storage
+ volume2:
+ # Set the size to 0 if you do not need the volume (if you are using Dynamic Volume Provisioning)
+ size: 2Gi
+ storageClassName: ics-storage
+ volume3:
+ size: 1Gi
+ storageClassName: helmmanager-storage
+
+...
+...
+...
\ No newline at end of file
#!/bin/bash
################################################################################
-# Copyright (c) 2020 Nordix Foundation. #
+# Copyright (c) 2023 Nordix Foundation. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
helm repo remove local
$ROOT_DIR/prepare-common-templates
-COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice rappcatalogueenhancedservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager orufhrecovery ransliceassurance capifcore"
+COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice rappcatalogueenhancedservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager orufhrecovery ransliceassurance capifcore ranpm"
for component in $COMPONENTS; do
echo "Packaging NONRTRIC component [$component]"
helm dep up $ROOT_DIR/../nonrtric/helm/$component
NONRTRIC_NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *nonrtric:/{print $2}')
RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}')
INSTALL_KONG=$(cat $OVERRIDEYAML | awk '/^ installKong:/{print $2}')
+INSTALL_RANPM=$(cat $OVERRIDEYAML | awk '/^ installRanpm:/{print $2}')
echo "Chart name- $PARENT_CHART"
if ! kubectl get ns ${NONRTRIC_NAMESPACE:-nonrtric}> /dev/null 2>&1; then
echo "Deploying NONRTRIC"
+echo "Install Ranpm- $INSTALL_RANPM"
+
+if [ "$INSTALL_RANPM" = true ];then
+ echo "Running install-ranpm.sh"
+ chmod +x ${ROOT_DIR}/../ranpm/install/install-ranpm.sh
+ ${ROOT_DIR}/../ranpm/install/install-ranpm.sh
+ echo "install-ranpm.sh completed"
+fi
+
HELM_NAME_OPT=""
if [ -z $IS_HELM3 ];then
HELM_NAME_OPT="--name"
echo "helm install -f $OVERRIDEYAML --namespace ${NONRTRIC_NAMESPACE:-nonrtric} ${HELM_NAME_OPT} ${RELEASE_PREFIX} $ROOT_DIR/../nonrtric/helm/nonrtric"
helm install -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" "$ROOT_DIR/../nonrtric/helm/nonrtric"
-
-
#!/bin/bash
################################################################################
-# Copyright (c) 2020 Nordix Foundation. #
+# Copyright (c) 2023 Nordix Foundation. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# This script to undeploy the NONRTRIC
-COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice rappcatalogueenhancedservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager orufhrecovery ransliceassurance capifcore"
+COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice rappcatalogueenhancedservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager orufhrecovery ransliceassurance capifcore ranpm"
RECIPE_NAMESPACE=$(kubectl get cm --all-namespaces | grep nonrtric-recipe | awk '{print $1}')
kubectl get configmap -n $RECIPE_NAMESPACE nonrtric-recipe -o jsonpath='{.data.recipe}' > /tmp/recipe.yaml
NONRTRIC_NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *nonrtric:/{print $2}')
RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}')
INSTALL_KONG=$(cat /tmp/recipe.yaml | awk '/^ installKong:/{print $2}')
+INSTALL_RANPM=$(cat /tmp/recipe.yaml | awk '/^ installRanpm:/{print $2}')
if [ "$INSTALL_KONG" = true ];then
echo "Uninstalling Kong"
helm delete kong-nonrtric --namespace kong
fi
+ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+
+if [ "$INSTALL_RANPM" = true ];then
+ echo "Running uninstall-ranpm.sh"
+ chmod +x ${ROOT_DIR}/../ranpm/install/uninstall-ranpm.sh
+ ${ROOT_DIR}/../ranpm/install/uninstall-ranpm.sh
+ kubectl delete ns ran
+ echo "uninstall-ranpm.sh completed"
+fi
+
echo "Undeploying NONRTRIC components [$COMPONENTS]"
IS_HELM3=$(helm version -c --short|grep -e "^v3")
kubectl delete cm -n ${NONRTRIC_NAMESPACE:-nonrtric} nonrtric-recipe
kubectl delete ns ${NONRTRIC_NAMESPACE:-nonrtric}
+
+kubectl delete ns onap
################################################################################
-# Copyright (c) 2020 Nordix Foundation. #
+# Copyright (c) 2023 Nordix Foundation. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
installOrufhrecovery: true
installRansliceassurance: true
installCapifcore: true
+ installRanpm: true
volume1:
# Set the size to 0 if you do not need the volume (if you are using Dynamic Volume Provisioning)
--- /dev/null
+Subproject commit 696b3a4eb9eecf92b99e62e0081f7140c0294155