Skip to content

Commit 042176a

Browse files
julianKatzcemakd
authored andcommitted
Make non-implemented on windows an info
1 parent c4b69f3 commit 042176a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/linkcache/devices_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ package linkcache
44

55
import (
66
"context"
7-
"fmt"
87
"time"
98

109
"k8s.io/klog/v2"
1110
)
1211

1312
func NewDeviceCacheForNode(ctx context.Context, period time.Duration, nodeName string) (*DeviceCache, error) {
14-
klog.Warningf("NewDeviceCacheForNode is not implemented for Windows")
13+
klog.Infof("NewDeviceCacheForNode is not implemented for Windows")
1514
return nil, nil
1615
}
1716

@@ -20,7 +19,8 @@ func (d *DeviceCache) Run(ctx context.Context) {
2019
}
2120

2221
func (d *DeviceCache) AddVolume(volumeID string) error {
23-
return fmt.Errorf("AddVolume is not implemented for Windows")
22+
klog.Infof("AddVolume is not implemented for Windows")
23+
return nil
2424
}
2525

2626
func (d *DeviceCache) RemoveVolume(volumeID string) {

0 commit comments

Comments
 (0)