Skip to content

Commit

Permalink
feat: only requeue usb device claims match to usb device pci address
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <jack.yu@suse.com>
  • Loading branch information
Yu-Jack committed Jun 3, 2024
1 parent 3d85d29 commit b115206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/usbdevice/usbdevice_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ func (h *DevHandler) OnDeviceChange(_ string, _ string, obj runtime.Object) ([]r

var rr []relatedresource.Key
for _, v := range udcList {
rr = append(rr, relatedresource.NewKey(v.Namespace, v.Name))
if v.Status.PCIAddress == ud.Status.PCIAddress {
rr = append(rr, relatedresource.NewKey(v.Namespace, v.Name))
}
}
return rr, nil
}
Expand Down

0 comments on commit b115206

Please sign in to comment.