Skip to content

Commit e8b59af

Browse files
authored
Merge pull request kubernetes#128180 from pacoxu/node-validation
e2e_node: print system validation warnings
2 parents 7429566 + 6877a2b commit e8b59af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/e2e_node/e2e_node_suite_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,12 @@ func TestE2eNode(t *testing.T) {
193193
klog.Exitf("chroot %q failed: %v", rootfs, err)
194194
}
195195
}
196-
if _, err := system.ValidateSpec(*spec, "remote"); len(err) != 0 {
197-
klog.Exitf("system validation failed: %v", err)
196+
warns, errs := system.ValidateSpec(*spec, "remote")
197+
if len(warns) != 0 {
198+
klog.Warningf("system validation warns: %v", warns)
199+
}
200+
if len(errs) != 0 {
201+
klog.Exitf("system validation failed: %v", errs)
198202
}
199203
return
200204
}

0 commit comments

Comments
 (0)