mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
set default HostPathType to empty
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user