summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
5f6a53c)
CentOS ships with an older version of `git`, which lacks certain
features like updating submodules from a CWD different from git
repo root. Work around these to avoid compatibility issues.
Change-Id: Ibba156e7fb7edb41215f4be3893a3c1cc5d956d8
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
# TODO(alav): Make each step re-entrant
# 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'
source util.sh
wait_for 10 'test $(kubectl get pods --all-namespaces | grep -ce "tiller.*Running") -eq 1'
# Add the CORD repository and update indexes
if [ "$(uname -m)" == "aarch64" ]; then
# 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}
#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}"
fi
else
helm repo add cord "${CORD_REPO}"