mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
e2e_node: print system validation warnings
This commit is contained in:
parent
98e5a701cb
commit
6877a2bfb8
@ -193,8 +193,12 @@ func TestE2eNode(t *testing.T) {
|
||||
klog.Exitf("chroot %q failed: %v", rootfs, err)
|
||||
}
|
||||
}
|
||||
if _, err := system.ValidateSpec(*spec, "remote"); len(err) != 0 {
|
||||
klog.Exitf("system validation failed: %v", err)
|
||||
warns, errs := system.ValidateSpec(*spec, "remote")
|
||||
if len(warns) != 0 {
|
||||
klog.Warningf("system validation warns: %v", warns)
|
||||
}
|
||||
if len(errs) != 0 {
|
||||
klog.Exitf("system validation failed: %v", errs)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user