Skip to content

Commit

Permalink
Try to get output
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Fox <[email protected]>
  • Loading branch information
kfox1111 committed Dec 15, 2023
1 parent 9645ef2 commit 0cd48c9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions examples/production/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ for i in "$@"; do
done

teardown() {

print_helm_releases
print_spire_workload_status "${ns}"

if [[ "$1" -ne 0 ]]; then
get_namespace_details "${ns}"
fi

if [ "${CLEANUP}" -eq 1 ]; then
helm uninstall --namespace "${ns}" spire 2>/dev/null || true
kubectl delete ns "${ns}" 2>/dev/null || true
Expand All @@ -46,7 +54,7 @@ teardown() {
fi
}

trap 'trap - SIGTERM && teardown' SIGINT SIGTERM EXIT
trap 'trap - SIGTERM && teardown $?' SIGINT SIGTERM EXIT

if [[ -n "$UPGRADE_ARGS" ]]; then
pushd "${SCRIPTPATH}"
Expand Down Expand Up @@ -132,10 +140,3 @@ if helm get manifest -n spire-server spire | grep -i example; then
echo Global settings did not work. Please fix.
exit 1
fi

print_helm_releases
print_spire_workload_status "${ns}"

if [[ "$1" -ne 0 ]]; then
get_namespace_details "${ns}"
fi

0 comments on commit 0cd48c9

Please sign in to comment.