X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fbin%2Finstall;h=df15d9bec9345e7b5764e5f70b47b2b785551598;hb=e7873992010cbe1274c8afc432b51be090bcd2d5;hp=e759f66583f6fcacd72b188af20a178cb4ca1c54;hpb=e8411564c0887d17955cfe88aa394c1674b5ce42;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/bin/install b/ric-aux/80-Auxiliary-Functions/bin/install index e759f665..df15d9be 100755 --- a/ric-aux/80-Auxiliary-Functions/bin/install +++ b/ric-aux/80-Auxiliary-Functions/bin/install @@ -36,22 +36,34 @@ else NAMESPACE=$RICAUX_NAMESPACE fi -RICAUX_COMPONENTS="dashboard ves message-router" +RICAUX_COMPONENTS="dashboard ves message-router kong-aux" echo "Deploying RIC AUX components [$RICAUX_COMPONENTS]" echo "Platform Namespace: $NAMESPACE" echo "Helm Release Name: $RELEASE_NAME" -COMMON_CHART_VERSION=$(cat $DIR/../../../ric-platform/50-RIC-Platform/helm/common/Chart.yaml | grep version | awk '{print $2}') +COMMON_CHART_VERSION=$(cat $DIR/../../../ric-common/Common-Template/helm/ric-common/Chart.yaml | grep version | awk '{print $2}') -helm package -d /tmp $DIR/../../../ric-platform/50-RIC-Platform/helm/common +helm repo remove local + +helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common/ for component in $RICAUX_COMPONENTS; do echo "Preparing chart for comonent $component" + + if [ $component = "kong-aux" ]; then + mkdir -p $DIR/../helm/$component/charts + helm dep up $DIR/../helm/$component + helm install --namespace ricaux --name "${RELEASE_NAME}-$component" $DIR/../helm/$component --set postgresql.enabled=false --set env.database=off + continue + fi + + echo "not kong component" + mkdir -p $DIR/../helm/$component/charts/ - cp /tmp/common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/ + cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/ if [ -z $OVERRIDEYAML ]; then helm install --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-$component" $DIR/../helm/$component else