SMO Installation uses service manager preload scripts from nonrtric directory.
As the NONRTRIC directory is being deprecated, the service manager preload scripts are moved to the smo-install directory.
This commit updates the paths in the deploy and undeploy scripts accordingly and modifies the post-configuration script to use
Issue-ID: NONRTRIC-1082
Change-Id: Ib80eb27b252ad9a8432a40ebacd579fd187e5384
Signed-off-by: aravind.est <aravindhan.a@est.tech>
echo "Deploying NONRTRIC"
echo "helm install -f $OVERRIDEYAML --namespace ${NONRTRIC_NAMESPACE:-nonrtric} ${HELM_NAME_OPT} ${RELEASE_PREFIX} $ROOT_DIR/../nonrtric/helm/nonrtric"
-helm install -f $OVERRIDEYAML -n "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" "$ROOT_DIR/../nonrtric/helm/nonrtric"
-
-if [ "$INSTALL_SERVICEMANAGER" == "true" ]; then
- pushd "$ROOT_DIR/../nonrtric/servicemanager-preload"
- # Send stderr to null to turn off chatty logging
- ./servicemanager-preload.sh config-nonrtric.yaml 2>/dev/null
- popd
-fi
+helm install -f $OVERRIDEYAML -n "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" "$ROOT_DIR/../nonrtric/helm/nonrtric"
\ No newline at end of file
INSTALL_KONG=$(cat /tmp/recipe.yaml | awk '/^ installKong:/{print $2}')
if [ "$INSTALL_KONG" = true ];then
- echo "Warning - deleting Kong routes and services for ServiceManager"
- SERVICEMANAGER_POD=$(kubectl get pods -o custom-columns=NAME:.metadata.name -l app=nonrtric-servicemanager --no-headers -n ${NONRTRIC_NAMESPACE:-nonrtric})
- if [[ -n $SERVICEMANAGER_POD ]]; then
- kubectl exec $SERVICEMANAGER_POD -n ${NONRTRIC_NAMESPACE:-nonrtric} -- ./kongclearup
- else
- echo "Error - Servicemanager pod not found, didn't delete Kong routes and services for ServiceManager"
- fi
echo "Uninstalling kongstorage"
helm delete kongstorage -n "${NONRTRIC_NAMESPACE:-nonrtric}"
echo "Uninstalling Kong"
<!---
-Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
Licensed under the Creative Commons License, Attribution 4.0 Intl.
(the"Documentation License"); you may not use this documentation
################################################################################
-# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. #
+# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
################################################################################
-# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. #
+# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
fi
if [ "$INSTALL_SERVICEMANAGER" == "true" ]; then
- pushd ../../../nonrtric/servicemanager-preload
# Send stderr to /dev/null to turn off chatty logging
- ./servicemanager-preload.sh config-nonrtric.yaml 2>/dev/null
- ./servicemanager-preload.sh config-smo.yaml 2>/dev/null
- popd
+ ../sub-scripts/servicemanager-preload.sh ../packages/post-configuration/servicemanager-preconfig-nonrtric.yaml 2>/dev/null
+ ../sub-scripts/servicemanager-preload.sh ../packages/post-configuration/servicemanager-preconfig-smo.yaml 2>/dev/null
fi
#!/bin/bash
################################################################################
-# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. #
+# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #