Closed olemarkus closed 2 years ago
/lgtm
This reverts part of https://github.com/kubernetes-sigs/kubetest2/pull/148. /cc @ShwethaKumbla @amwat
I see that the defer was removed out of a concern that down will be called multiple times. But since os.Exit is called, this should not be the case. os.Exit will not call deferred functions.
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: BenTheElder, olemarkus
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Add the down logic back into a
defer
so that resources are cleaned up on cluster up and test failures. Fixes #188 Fixes https://github.com/kubernetes/kops/issues/13349