mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #128180 from pacoxu/node-validation
e2e_node: print system validation warnings
This commit is contained in:
commit
e8b59afec6
@ -193,8 +193,12 @@ func TestE2eNode(t *testing.T) {
|
|||||||
klog.Exitf("chroot %q failed: %v", rootfs, err)
|
klog.Exitf("chroot %q failed: %v", rootfs, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if _, err := system.ValidateSpec(*spec, "remote"); len(err) != 0 {
|
warns, errs := system.ValidateSpec(*spec, "remote")
|
||||||
klog.Exitf("system validation failed: %v", err)
|
if len(warns) != 0 {
|
||||||
|
klog.Warningf("system validation warns: %v", warns)
|
||||||
|
}
|
||||||
|
if len(errs) != 0 {
|
||||||
|
klog.Exitf("system validation failed: %v", errs)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user