mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
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:
commit
f1aa025837
@ -243,6 +243,7 @@ func (b *vsphereVolumeMounter) SetUpAt(dir string, fsGroup *int64) error {
|
|||||||
os.Remove(dir)
|
os.Remove(dir)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
volume.SetVolumeOwnership(b, fsGroup)
|
||||||
glog.V(3).Infof("vSphere volume %s mounted to %s", b.volPath, dir)
|
glog.V(3).Infof("vSphere volume %s mounted to %s", b.volPath, dir)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user