# ================================================================================
# Copyright (C) 2021 AT&T Intellectual Property. All rights
# reserved.
+# Modification Copyright (C) 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.
cd $SCRIPT_PATH
FLAVOUR=$1
+MODE=$2
if [ -z "$1" ]
then
echo "No helm override flavour supplied, going to default"
FLAVOUR="default"
fi
+if [ -z "$2" ]
+ then
+ echo "No mode supplied, going to release"
+ MODE="release"
+fi
+
+timestamp=$(date +%s)
+
+TARGET_HELM_REPO="oran-snapshot" # This should be changed to oran-release once the release charts are published
+
+if [ "$MODE" == "dev" ]; then
+ TARGET_HELM_REPO="local"
+elif [ "$MODE" == "snapshot" ]; then
+ TARGET_HELM_REPO="oran-snapshot"
+fi
+
echo "Starting Network Simulators namespace ..."
-../sub-scripts/install-simulators.sh ../../helm-override/$FLAVOUR/network-simulators-override.yaml ../../helm-override/$FLAVOUR/network-simulators-topology-override.yaml
+../sub-scripts/install-simulators.sh ../../helm-override/$FLAVOUR/network-simulators-override.yaml ../../helm-override/$FLAVOUR/network-simulators-topology-override.yaml "$TARGET_HELM_REPO"
kubectl get pods -n network
kubectl get namespaces
# ================================================================================
# Copyright (C) 2021 AT&T Intellectual Property. All rights
# reserved.
+# Modification Copyright (C) 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.
kubectl create namespace network
echo '### Installing ORAN SIMULATORS part ###'
-helm upgrade --install --debug oran-simulator local/ru-du-simulators --namespace network -f $1 -f $2
+
+OVERRIDEYAML1=$1
+OVERRIDEYAML2=$2
+HELM_REPO=$3
+
+echo "Installing SIMULATORS from HELM Repo : $HELM_REPO"
+helm upgrade --install --debug oran-simulator "$HELM_REPO"/ru-du-simulators --namespace network -f "$OVERRIDEYAML1" -f "$OVERRIDEYAML2"