X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bin%2Finstall;h=d879a03909ce0c502f3e497502da2c0e2425c884;hb=refs%2Fchanges%2F64%2F7264%2F1;hp=bc9a4baf86089855edfcc94c1b5be48bf2b5f534;hpb=f882a9b97ac9dec5dfc2468f3150911e296132dc;p=ric-plt%2Fric-dep.git diff --git a/bin/install b/bin/install index bc9a4ba..d879a03 100755 --- a/bin/install +++ b/bin/install @@ -2,6 +2,7 @@ ################################################################################ # Copyright (c) 2019 AT&T Intellectual Property. # # Copyright (c) 2019 Nokia. # +# Copyright (c) 2021 HCL Technologies Limited. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # @@ -61,6 +62,8 @@ function wait_for_cats() { echo } +KERNEL_OPTIMIZATION=false +IS_HELM3=$(helm version --short|grep -e "^v3") while [ -n "$1" ]; do # while loop starts @@ -72,6 +75,8 @@ while [ -n "$1" ]; do # while loop starts -c) LIST_OF_COMPONENTS=$2 shift ;; + -o) KERNEL_OPTIMIZATION=true + ;; *) echo "Option $1 not recognized" ;; # In case you typed a different option other than a,b,c esac @@ -89,7 +94,12 @@ if [ -z "$OVERRIDEYAML" ];then exit 1 fi -HAS_COMMON_PACKAGE=$(helm search local/ric-common | grep ric-common) +if [ -z $IS_HELM3 ] +then + HAS_COMMON_PACKAGE=$(helm search local/ric-common | grep ric-common) +else + HAS_COMMON_PACKAGE=$(helm search repo local/ric-common | grep ric-common) +fi if [ -z "$HAS_COMMON_PACKAGE" ];then echo "****************************************************************************************************************" @@ -110,7 +120,7 @@ RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}') LOCAL_REPOSITORY=$(echo "$COMMON_BLOCK" | awk '/^ *localregistry:/{print $2}') # replace the dbaasha with dbaas1 if deploying non HA DBaaS -COMPONENTS=${LIST_OF_COMPONENTS:-"infrastructure dbaas xapp-onboarder appmgr rtmgr e2mgr e2term a1mediator submgr vespamgr jaegeradapter o1mediator alarmadapter"} +COMPONENTS=${LIST_OF_COMPONENTS:-"infrastructure dbaas xapp-onboarder appmgr rtmgr e2mgr e2term a1mediator submgr vespamgr jaegeradapter o1mediator alarmmanager influxdb"} echo "Deploying RIC infra components [$COMPONENTS]" @@ -134,7 +144,97 @@ if [ ! -z "$LOCAL_REPOSITORY" ]; then fi +echo Add cluster roles + cat >ricplt-role.yaml <kernel_optimizer.yaml <