Skip to content

Commit 8915645

Browse files
committed
fix nil pointer panic on windows node
1 parent 616d6d4 commit 8915645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/volume/volume_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
// NewVolumeOwnership returns an interface that can be used to recursively change volume permissions and ownership
2929
func NewVolumeOwnership(mounter Mounter, dir string, fsGroup *int64, fsGroupChangePolicy *v1.PodFSGroupChangePolicy, completeFunc func(types.CompleteFuncParam)) VolumeOwnershipChanger {
30-
return nil
30+
return &VolumeOwnership{}
3131
}
3232

3333
func (vo *VolumeOwnership) AddProgressNotifier(pod *v1.Pod, recorder record.EventRecorder) VolumeOwnershipChanger {

0 commit comments

Comments
 (0)