X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fe2-interface.git;a=blobdiff_plain;f=e2sim%2Fprevious%2Fhelm%2Fe2sim_install.sh;fp=e2sim%2Fprevious%2Fhelm%2Fe2sim_install.sh;h=0000000000000000000000000000000000000000;hp=9b9a13cea46c25460007e376c5ff0b4d031271a3;hb=f86662b5b6481f27e18313a36355871f3a947193;hpb=a9f02a2b5886990fd81e64f7c218c5d4844f18a3 diff --git a/e2sim/previous/helm/e2sim_install.sh b/e2sim/previous/helm/e2sim_install.sh deleted file mode 100755 index 9b9a13c..0000000 --- a/e2sim/previous/helm/e2sim_install.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash -################################################################################ -# Copyright (c) 2019 AT&T Intellectual Property. # -# Copyright (c) 2019 Nokia. # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); # -# you may not use this file except in compliance with the License. # -# You may obtain a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -################################################################################ - - -OVERRIDEYAML=$1 - - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" - -#/root/test/ric_robot_suite/helm -# extract the base to find root to dep - -BASE=${DIR%/test*} - -# /data/ORAN-OSC/it/dep/ric-platform/50-RIC-Platform/bin/install -BASEDIR05=$BASE/dep/ric-platform/50-RIC-Platform/ -BASEDIRCOMMON=$BASE/dep/ric-common/Common-Template/helm/ric-common - -echo "Using etc/ric.conf from $BASEDIR05" - - -source $BASEDIR05/etc/ric.conf - - -if [ -z "$RICPLT_RELEASE_NAME" ];then - RELEASE_NAME=$helm_release_name -else - RELEASE_NAME=$RICPLT_RELEASE_NAME -fi - -# Namespace configuration -if [ -z "$RICPLT_NAMESPACE" ];then - PLT_NAMESPACE=$plt_namespace -else - PLT_NAMESPACE=$RICPLT_NAMESPACE -fi - - - -RICPLT_COMPONENTS="e2sim" - -echo "Deploying RIC Platform components [$RICPLT_COMPONENTS]" -echo "Platform Namespace: $PLT_NAMESPACE" -echo "Helm Release Name: $RELEASE_NAME" - - -COMMON_CHART_VERSION=$(cat $BASEDIRCOMMON/Chart.yaml | grep version | awk '{print $2}') - -helm package -d /tmp $BASEDIRCOMMON - - -for component in $RICPLT_COMPONENTS; do - echo "Preparing chart for comonent $component" - mkdir -p $DIR/$component/charts/ - cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/$component/charts/ - if [ -z $OVERRIDEYAML ]; then - echo "helm install --namespace \"${PLT_NAMESPACE}\" --set \"Release.HelmReleaseName=${RELEASE_NAME}\" --name \"${RELEASE_NAME}-$component\" $DIR/../helm/$component" - helm install --namespace "${PLT_NAMESPACE}" --set "Release.HelmReleaseName=${RELEASE_NAME}" --name "${RELEASE_NAME}-$component" $DIR/$component - else - echo "helm install -f $OVERRIDEYAML --namespace \"${PLT_NAMESPACE}\" --set \"Release.HelmReleaseName=${RELEASE_NAME}\" --name \"${RELEASE_NAME}-$component\" $DIR/../helm/$component" - helm install -f $OVERRIDEYAML --namespace "${PLT_NAMESPACE}" --set "Release.HelmReleaseName=${RELEASE_NAME}" --name "${RELEASE_NAME}-$component" $DIR/$component - fi -done