Merge pull request #22995 from swagiaal/fix-gitrepo-ownership

Automatic merge from submit-queue

Set ownership to fsGroup in gitrepo

Set ownership to fsGroup in the gitrepo volume plugin

@pmorie
This commit is contained in:
k8s-merge-robot 2016-04-20 03:49:37 -07:00
commit 537a739b3b

View File

@ -188,6 +188,8 @@ func (b *gitRepoVolumeMounter) SetUpAt(dir string, fsGroup *int64) error {
return fmt.Errorf("failed to exec 'git reset --hard': %s: %v", output, err)
}
volume.SetVolumeOwnership(b, fsGroup)
volumeutil.SetReady(b.getMetaDir())
return nil
}