set default HostPathType to empty

This commit is contained in:
Di Xu
2017-07-19 15:48:36 +08:00
parent 6f74af94ef
commit d0a4af133b
8 changed files with 36 additions and 6 deletions

View File

@@ -554,7 +554,7 @@ func TestHostPathTypeCheckerInternal(t *testing.T) {
isFile: false,
exists: false,
validpathType: newHostPathTypeList(string(v1.HostPathFileOrCreate)),
invalidpathType: newHostPathTypeList(string(v1.HostPathFile), string(v1.HostPathDirectory),
invalidpathType: newHostPathTypeList(string(v1.HostPathDirectory),
string(v1.HostPathSocket), string(v1.HostPathCharDev), string(v1.HostPathBlockDev)),
},
{