X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Fuse_cases%2Fseba_on_arm%2Finstall%2Finstall.sh;h=f489c03278d4ce7b1ba407371fec93b4d84ea4c5;hb=59f59711e12648f44b2c9bfe094693e470700f95;hp=eb9fbc11775945a1902f12de73e2a6ac32d52180;hpb=e70f1cbe15e44cc01e3114cd69481e9b33ce351f;p=iec.git diff --git a/src/use_cases/seba_on_arm/install/install.sh b/src/use_cases/seba_on_arm/install/install.sh index eb9fbc1..f489c03 100755 --- a/src/use_cases/seba_on_arm/install/install.sh +++ b/src/use_cases/seba_on_arm/install/install.sh @@ -12,6 +12,7 @@ CORD_CHART=${CORD_CHART:-${basepath}/../src_repo/seba_charts} # TODO(alav): Make each step re-entrant +# shellcheck source=/dev/null source util.sh wait_for 10 'test $(kubectl get pods --all-namespaces | grep -ce "tiller.*Running") -eq 1' @@ -19,9 +20,11 @@ wait_for 10 'test $(kubectl get pods --all-namespaces | grep -ce "tiller.*Runnin # Add the CORD repository and update indexes if [ "$(uname -m)" == "aarch64" ]; then - if [ ! -d ${CORD_CHART}/cord-platform ]; then + if [ ! -d "${CORD_CHART}/cord-platform" ]; then #git clone https://github.com/iecedge/seba_charts ${CORD_CHART} - cd ${basepath}/../src_repo && git submodule update --init seba_charts + cd "$(git rev-parse --show-toplevel)" + git submodule update --init "${CORD_CHART}" + cd "${basepath}/../src_repo" fi else helm repo add cord "${CORD_REPO}" @@ -41,5 +44,5 @@ wait_for 500 'test $(kubectl get pods | grep -vcE "(\s(.+)/\2.*Running|tosca-loa # Install the AT&T workflow helm install -n att-workflow --version "${ATT_WORKFLOW_VERSION}" ${CORD_CHART}/att-workflow -wait_for 300 'test $(kubectl get pods | grep -vcE "(\s(.+)/\2.*Running|tosca-loader.*Completed)") -eq 1' || true +wait_for 500 'test $(kubectl get pods | grep -vcE "(\s(.+)/\2.*Running|tosca-loader.*Completed)") -eq 1' || true