Add jenkins charts
[it/dep.git] / smo-install / scripts / layer-2 / 2-install-oran.sh
index 8e432ce..687c45e 100755 (executable)
@@ -27,9 +27,18 @@ SCRIPT=$(readlink -f "$0")
 SCRIPT_PATH=$(dirname "$SCRIPT")
 cd $SCRIPT_PATH
 
+FLAVOUR=$1
+if [ -z "$1" ]
+  then
+    echo "No helm override flavour supplied, going to default"
+    FLAVOUR="default"
+fi
+
+timestamp=$(date +%s)
+
 echo "Starting ONAP & NONRTRIC namespaces ..."
-../sub-scripts/install-onap.sh ../../helm-override/onap-override.yaml
-../sub-scripts/install-nonrtric.sh ../../helm-override/oran-override.yaml
+../sub-scripts/install-onap.sh ../../helm-override/$FLAVOUR/onap-override.yaml $timestamp
+../sub-scripts/install-nonrtric.sh ../../helm-override/$FLAVOUR/oran-override.yaml $timestamp
 
 kubectl get pods -n onap
 kubectl get pods -n nonrtric