mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
e2e: only tear down existing cluster if it exists
This commit is contained in:
parent
65f3fa9caf
commit
af9a922d6e
@ -94,7 +94,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if *up {
|
// TODO: remove the IsUp() check after we stop testing 1.2 and earlier
|
||||||
|
// (or if we figure out a better way to handle TearDown failing on nonexisting clusters on old releases).
|
||||||
|
if *up && IsUp() {
|
||||||
if err := TearDown(); err != nil {
|
if err := TearDown(); err != nil {
|
||||||
log.Fatalf("error tearing down previous cluster: %v", err)
|
log.Fatalf("error tearing down previous cluster: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user