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:
yangwangxing 2017-06-07 13:28:01 +08:00
parent 48947b29d8
commit dc0d53aa24
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ func (p *nfsProvisioner) Provision(options controller.VolumeOptions) (*v1.Persis
if err := os.MkdirAll(fullPath, 0777); err != nil {
return nil, errors.New("unable to create directory to provision new pv: " + err.Error())
}
os.Chmod(fullPath, 0777)
path := filepath.Join(p.path, pvName)