diff --git a/pkg/kubelet/cm/deviceplugin/device_plugin_stub.go b/pkg/kubelet/cm/deviceplugin/device_plugin_stub.go index 01f08c15987..9969e99989b 100644 --- a/pkg/kubelet/cm/deviceplugin/device_plugin_stub.go +++ b/pkg/kubelet/cm/deviceplugin/device_plugin_stub.go @@ -115,16 +115,8 @@ func (m *Stub) Register(kubeletEndpoint, resourceName string) error { // ListAndWatch lists devices and update that list according to the Update call func (m *Stub) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error { log.Println("ListAndWatch") - var devs []*pluginapi.Device - for _, d := range m.devs { - devs = append(devs, &pluginapi.Device{ - ID: d.ID, - Health: pluginapi.Healthy, - }) - } - - s.Send(&pluginapi.ListAndWatchResponse{Devices: devs}) + s.Send(&pluginapi.ListAndWatchResponse{Devices: m.devs}) for { select {