X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=install%2Finstall-nrt.sh;h=a30dcf3c2f49593b258c030c8bad2aa7c16ec1ce;hb=54872c9d73ec5dc31dd0ba915cd1e0beb13a3096;hp=6cb2caf6f606b19c670d69dd759f78725ed6de3c;hpb=6ab531b7836594aa22442600d829e96ea3b3fcda;p=nonrtric%2Fplt%2Franpm.git diff --git a/install/install-nrt.sh b/install/install-nrt.sh index 6cb2caf..a30dcf3 100755 --- a/install/install-nrt.sh +++ b/install/install-nrt.sh @@ -81,18 +81,10 @@ check_error() { fi } -################################################################################## -echo "##### Installing chart: namespaces" -################################################################################## - -helm install --wait namespaces helm/namespaces - -echo "" - ################################################################################## echo "##### Installing chart: nrt-base-0" ################################################################################## -helm install --wait -n nonrtric nrt-base-0 helm/nrt-base-0 +helm install --wait --create-namespace -n nonrtric nrt-base-0 helm/nrt-base-0 # Create realm in keycloak @@ -150,7 +142,11 @@ while [ $retcode -eq 1 ]; do done # Save influx user api-token to secret -INFLUXDB2_TOKEN=$(get_influxdb2_token influxdb2-0 nonrtric | base64) +B64FLAG="-w 0" +case "$OSTYPE" in + darwin*) B64FLAG="" ;; +esac +INFLUXDB2_TOKEN=$(get_influxdb2_token influxdb2-0 nonrtric | base64 $B64FLAG) PATCHDATA='[{"op": "add", "path": "/data/token", "value": "'$INFLUXDB2_TOKEN'"}]' kubectl patch secret influxdb-api-token -n nonrtric --type json -p "$PATCHDATA" @@ -170,6 +166,20 @@ done echo "" +################################################################################## +echo "##### Installing: chart nonrtricgateway" +################################################################################## + +helm install --wait -n nonrtric nonrtricgateway helm/nonrtricgateway +echo "" + +################################################################################## +echo "##### Installing: chart controlpanel" +################################################################################## + +helm install --wait -n nonrtric controlpanel helm/controlpanel +echo "" + ################################################################################## echo "##### Installing: chart ran" ################################################################################## @@ -177,7 +187,7 @@ echo "##### Installing: chart ran" ./helm/ran/certs/gen-certs.sh 10 check_error $? -helm install --wait -f helm/global-values.yaml -n ran ran helm/ran +helm install --wait --create-namespace -n ran -f helm/global-values.yaml ran helm/ran echo ""