Skip to content

Commit c4b69f3

Browse files
julianKatzcemakd
authored andcommitted
Only warn on windows instantiation
1 parent 4abd540 commit c4b69f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/linkcache/devices_windows.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ import (
66
"context"
77
"fmt"
88
"time"
9+
10+
"k8s.io/klog/v2"
911
)
1012

1113
func NewDeviceCacheForNode(ctx context.Context, period time.Duration, nodeName string) (*DeviceCache, error) {
12-
return nil, fmt.Errorf("NewDeviceCacheForNode is not implemented for Windows")
14+
klog.Warningf("NewDeviceCacheForNode is not implemented for Windows")
15+
return nil, nil
1316
}
1417

1518
func (d *DeviceCache) Run(ctx context.Context) {

0 commit comments

Comments
 (0)