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

@@ -214,6 +214,9 @@ func (b *hostPathMounter) SetUp(fsGroup *int64) error {
return fmt.Errorf("invalid HostPath `%s`: %v", b.GetPath(), err)
}
if *b.pathType == v1.HostPathUnset {
return nil
}
return checkType(b.GetPath(), b.pathType)
}