Skip to content

Commit 4a546d2

Browse files
committed
chore: make changes on SetVolumeOwnership
1 parent 9776fb2 commit 4a546d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ func SetVolumeOwnership(path, gid, policy string) error {
392392
if policy != "" {
393393
fsGroupChangePolicy = v1.PodFSGroupChangePolicy(policy)
394394
}
395-
return volume.SetVolumeOwnership(&VolumeMounter{path: path}, path, &gidInt64, &fsGroupChangePolicy, nil)
395+
return volume.NewVolumeOwnership(&VolumeMounter{path: path}, path, &gidInt64, &fsGroupChangePolicy, nil).ChangePermissions()
396396
}
397397

398398
// ExecFunc returns a exec function's output and error

0 commit comments

Comments
 (0)