Change plugin interfaces to use progress monitoring

This commit is contained in:
Hemant Kumar
2025-02-24 12:48:38 -05:00
parent 32752fe395
commit b51cbb1d17
11 changed files with 25 additions and 47 deletions

View File

@@ -229,8 +229,8 @@ func (b *gitRepoVolumeMounter) SetUpAt(dir string, mounterArgs volume.MounterArg
return fmt.Errorf("failed to exec 'git reset --hard': %s: %v", output, err)
}
volume.SetVolumeOwnership(b, dir, mounterArgs.FsGroup, nil /*fsGroupChangePolicy*/, volumeutil.FSGroupCompleteHook(b.plugin, nil))
ownershipChanger := volume.NewVolumeOwnership(b, dir, mounterArgs.FsGroup, nil /*fsGroupChangePolicy*/, volumeutil.FSGroupCompleteHook(b.plugin, nil))
ownershipChanger.ChangePermissions()
volumeutil.SetReady(b.getMetaDir())
return nil
}