mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +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)
|
||||
return err
|
||||
}
|
||||
volume.SetVolumeOwnership(b, fsGroup)
|
||||
glog.V(3).Infof("vSphere volume %s mounted to %s", b.volPath, dir)
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user