Merge pull request #38655 from abrarshivani/fsGroupforvSphere

Automatic merge from submit-queue (batch tested with PRs 39059, 39175, 35676, 38655)

Fix fsGroup to vSphere

**What this PR does / why we need it**:
Fixes #34039 by adding support for fsGroup to vSphere Volume. 

**Special notes for your reviewer**:
Tested with example from http://stackoverflow.com/questions/35213589/docker-container-with-non-root-user-deployed-in-google-container-engine-can-not
Before this fix got error ```Permission Denied```.

**Release note**:

`NONE`

cc @pdhamdhere @kerneltime @BaluDontu
This commit is contained in:
Kubernetes Submit Queue 2016-12-22 18:50:34 -08:00 committed by GitHub
commit f1aa025837

View File

@ -243,6 +243,7 @@ func (b *vsphereVolumeMounter) SetUpAt(dir string, fsGroup *int64) error {
os.Remove(dir)
return err
}
volume.SetVolumeOwnership(b, fsGroup)
glog.V(3).Infof("vSphere volume %s mounted to %s", b.volPath, dir)
return nil