Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ objects:
mkdir -p "${HOME}"

# wait for the router namespace
FOUND_KUBECONFIG=
SETUP_SUCCESS=
API_UP=
ROUTER_NAMESPACE=
ROUTER_DEPLOYMENT=
Expand All @@ -108,12 +108,12 @@ objects:
echo "Another process exited" 2>&1
exit 1
fi
if [[ ! -f "${KUBECONFIG}" ]]; then
if [[ ! -f /tmp/shared/setup-success ]]; then
sleep 15 & wait
continue
elif [[ -z "${FOUND_KUBECONFIG}" ]]; then
echo "Found shared kubeconfig"
FOUND_KUBECONFIG=1
elif [[ -z "${SETUP_SUCCESS}" ]]; then
echo "Setup success"
SETUP_SUCCESS=1

# don't let clients impact the global kubeconfig
cp "${KUBECONFIG}" /tmp/admin.kubeconfig
Expand Down Expand Up @@ -265,7 +265,7 @@ objects:
- -c
- |
#!/bin/sh
trap 'rc=$?; if test "${rc}" -ne 0; then touch /tmp/exit; fi; exit "${rc}"' EXIT
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM

mkdir /tmp/artifacts/installer &&
Expand Down