Skip to content

Commit 736f03b

Browse files
authored
Merge pull request kubernetes#131464 from pacoxu/fix-windows
[kubelet] fix nil pointer panic on windows node
2 parents 3a8af5a + 8915645 commit 736f03b

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)