Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci-operator/templates/openshift/installer: Restore backgrounded 'create cluster' #2680

Merged
Merged
Show file tree
Hide file tree
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 @@ -299,7 +299,7 @@ objects:
- |
#!/bin/sh
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
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM

mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down Expand Up @@ -373,7 +373,8 @@ objects:
exit 1
fi

/bin/openshift-install --dir=/tmp/artifacts/installer create cluster
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
wait "$!"

# Performs cleanup of all created resources
- name: teardown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ objects:
#!/bin/sh
set -euo pipefail
trap 'rc=$?; if test "${rc}" -eq 0; then touch "${HOME}"/setup-success; else touch "${HOME}"/exit; fi; exit "${rc}"' EXIT
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
cat > "${HOME}"/router-check.sh << 'EOF'
#!/bin/bash
set -euo pipefail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ objects:
- |
#!/bin/sh
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
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM

mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down Expand Up @@ -338,7 +338,8 @@ objects:
exit 1
fi

/bin/openshift-install --dir=/tmp/artifacts/installer create cluster
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
wait "$!"

# Performs cleanup of all created resources
- name: teardown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ objects:
- |
#!/bin/sh
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/config-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM

mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ objects:
- |
#!/bin/sh
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
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM

mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down