mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Catch error when failed to make directory in NFS volume plugin
This commit is contained in:
parent
9eb82fadc4
commit
13660ef701
@ -218,7 +218,9 @@ func (b *nfsMounter) SetUpAt(dir string, fsGroup *int64) error {
|
|||||||
if !notMnt {
|
if !notMnt {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
os.MkdirAll(dir, 0750)
|
if err := os.MkdirAll(dir, 0750); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
source := fmt.Sprintf("%s:%s", b.server, b.exportPath)
|
source := fmt.Sprintf("%s:%s", b.server, b.exportPath)
|
||||||
options := []string{}
|
options := []string{}
|
||||||
if b.readOnly {
|
if b.readOnly {
|
||||||
|
Loading…
Reference in New Issue
Block a user