Merge pull request #128180 from pacoxu/node-validation

e2e_node: print system validation warnings
This commit is contained in:
Kubernetes Prow Robot 2024-10-18 19:09:10 +01:00 committed by GitHub
commit e8b59afec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}