Commit f1aa0258 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents af54124f 5cb7faac
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment