X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fbin%2Finstall;h=b10b044b14c2f08a99c71eace099b2d7905a4c8e;hb=refs%2Fchanges%2F34%2F1234%2F9;hp=916e067a9af544f3cdf2f64ce74f5bd9e5accfb1;hpb=2df61c2fcf64b32ecf7f064ef9cbbe6b54a15bc0;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/bin/install b/ric-aux/80-Auxiliary-Functions/bin/install index 916e067a..b10b044b 100755 --- a/ric-aux/80-Auxiliary-Functions/bin/install +++ b/ric-aux/80-Auxiliary-Functions/bin/install @@ -50,11 +50,10 @@ GLOBAL_BLOCK=$(cat $OVERRIDEYAML | awk '/^global:/{getline; while ($0 ~ /^ +.*|^ NAMESPACE_BLOCK=$(cat $OVERRIDEYAML | awk '/^ namespace:/{getline; while ($0 ~ /^ .*|^ *$/) {print $0; if (getline == 0) {break}}}') NAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *aux:/{print $2}') RELEASE_PREFIX=$(echo "$GLOBAL_BLOCK" | awk '/^ *releasePrefix:/{print $2}') -COMPONENTS=${LIST_OF_COMPONENTS:-"dashboard ves message-router mrsub"} +COMPONENTS=${LIST_OF_COMPONENTS:-"dashboard ves message-router mrsub mc-stack portal aaf"} - -NODENAME=$(kubectl get node | awk '{print $1}') +NODENAME=$(kubectl get node | awk 'NR>1{print $1}') LABELFOUND=false for f in $NODENAME; do LABEL=$(kubectl describe node $f | grep local-storage) @@ -114,14 +113,19 @@ helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common for component in $COMPONENTS; do case "$component" in - dashboard | ves | message-router | mrsub) + dashboard | ves | message-router | mrsub | mc-stack | portal) mkdir -p $DIR/../helm/$component/charts/ cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/ helm install -f $OVERRIDEYAML --namespace "${NAMESPACE}" --name "${RELEASE_PREFIX}-$component" $DIR/../helm/$component ;; + aaf) + mkdir -p $DIR/../helm/$component/charts/ + cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/ + helm install -f $OVERRIDEYAML --namespace "onap" --name "${RELEASE_PREFIX}-$component" $DIR/../helm/$component + ;; *) helm install --namespace "${NAMESPACE}" --name "${RELEASE_PREFIX}-$component" $DIR/../helm/$component esac -done \ No newline at end of file +done