mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #5177 from roberthbailey/guestbook-teardown
Always stop the guestbook example regardless of how the tests finishes.
This commit is contained in:
commit
7c234d22ee
@ -33,9 +33,15 @@ export KUBECTL KUBE_CONFIG_FILE
|
||||
source "${KUBE_ROOT}/cluster/kube-env.sh"
|
||||
source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
|
||||
|
||||
GUESTBOOK="${KUBE_ROOT}/examples/guestbook"
|
||||
|
||||
function teardown() {
|
||||
${KUBECTL} stop -f "${GUESTBOOK}"
|
||||
}
|
||||
|
||||
prepare-e2e
|
||||
|
||||
GUESTBOOK="${KUBE_ROOT}/examples/guestbook"
|
||||
trap "teardown" EXIT
|
||||
|
||||
echo "WARNING: this test is a no op that only attempts to launch guestbook resources."
|
||||
# Launch the guestbook example
|
||||
|
Loading…
Reference in New Issue
Block a user