kubeadm: validators pass warnings and errors

This change allows validators to pass warnings as well as errors. This
was needed because of how support for docker 1.13+ and the new EE and CE
versions is currently being handled.
This commit is contained in:
Derek McQuay
2017-03-08 11:28:36 -08:00
parent eeefd2ca87
commit 35f07095d8
8 changed files with 65 additions and 35 deletions

View File

@@ -98,7 +98,7 @@ func TestE2eNode(t *testing.T) {
glog.Exitf("chroot %q failed: %v", rootfs, err)
}
}
if err := system.ValidateDefault(framework.TestContext.ContainerRuntime); err != nil {
if _, err := system.ValidateDefault(framework.TestContext.ContainerRuntime); err != nil {
glog.Exitf("system validation failed: %v", err)
}
return