X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fbin%2Finstall;h=8b14da0bac4ce94579390e8bc2e3dac0945a90d7;hb=refs%2Fchanges%2F83%2F6083%2F2;hp=a68429d23426b5436afd2ffd8f200aa04b8f1da5;hpb=c96a76b9867c4650c5f0dce302909235a4389a05;p=it%2Fdep.git diff --git a/nonrtric/bin/install b/nonrtric/bin/install index a68429d2..8b14da0b 100755 --- a/nonrtric/bin/install +++ b/nonrtric/bin/install @@ -22,10 +22,7 @@ while [ -n "$1" ]; do # while loop starts -f) OVERRIDEYAML=$2 shift - ;; - -c) LIST_OF_COMPONENTS=$2 - shift - ;; + ;; *) echo "Option $1 not recognized" ;; # In case you typed a different option other than a,b,c esac @@ -52,7 +49,6 @@ NAMESPACE_BLOCK=$(cat $OVERRIDEYAML | awk '/^ namespace:/{getline; while ($0 ~ NONRTRIC_NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *nonrtric:/{print $2}') RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}') PARENT_CHART=$(cat $OVERRIDEYAML | awk '/^ *component:/{print $2}') -COMPONENTS=${LIST_OF_COMPONENTS:-"controlpanel a1controller a1simulator policymanagementservice enrichmentservice nonrtric"} echo "Chart name- $PARENT_CHART" if ! kubectl get ns ${NONRTRIC_NAMESPACE:-nonrtric}> /dev/null 2>&1; then @@ -64,15 +60,13 @@ fi kubectl create configmap -n ${NONRTRIC_NAMESPACE:-nonrtric} nonrtric-recipe --from-file=recipe=$OVERRIDEYAML -echo "Deploying NONRTRIC components [$COMPONENTS]" - -echo "Updating the Parent Chart [$PARENT_CHART]" -helm dep up $DIR/../helm/$PARENT_CHART +echo "Deploying NONRTRIC [$PARENT_CHART]" HELM_NAME_OPT="" if [ -z $IS_HELM3 ];then HELM_NAME_OPT="--name" -fi +fi -helm install $DIR/../helm/"${PARENT_CHART}" -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" +echo "helm install -f $OVERRIDEYAML --namespace ${NONRTRIC_NAMESPACE:-nonrtric} ${HELM_NAME_OPT} ${RELEASE_PREFIX} $DIR/../helm/${PARENT_CHART}" +helm install -f $OVERRIDEYAML --namespace "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" $DIR/../helm/"${PARENT_CHART}"