mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
hack/e2e.go: Dump cluster logs in case of Up failure
This commit is contained in:
@@ -236,6 +236,11 @@ func run(deploy deployer) error {
|
||||
}
|
||||
// Start the cluster using this version.
|
||||
if err := xmlWrap("Up", deploy.Up); err != nil {
|
||||
if *dump != "" {
|
||||
xmlWrap("DumpClusterLogs", func() error {
|
||||
return DumpClusterLogs(*dump)
|
||||
})
|
||||
}
|
||||
return fmt.Errorf("starting e2e cluster: %s", err)
|
||||
}
|
||||
if *dump != "" {
|
||||
|
Reference in New Issue
Block a user