Fix issue 149 - nfs-client-provisioner create folder with 755, not 777
REF: https://github.com/kubernetes-incubator/external-storage/issues/149
This commit is contained in:
parent
48947b29d8
commit
dc0d53aa24
|
|
@ -65,6 +65,7 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis
|
||||||
if err := os.MkdirAll(fullPath, 0777); err != nil {
|
if err := os.MkdirAll(fullPath, 0777); err != nil {
|
||||||
return nil, errors.New("unable to create directory to provision new pv: " + err.Error())
|
return nil, errors.New("unable to create directory to provision new pv: " + err.Error())
|
||||||
}
|
}
|
||||||
|
os.Chmod(fullPath, 0777)
|
||||||
|
|
||||||
path := filepath.Join(p.path, pvName)
|
path := filepath.Join(p.path, pvName)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue