squat / generic-device-plugin

A Kubernetes device plugin to schedule generic Linux devices
Apache License 2.0
208 stars 23 forks source link

Fix parsing of USB devices & follow symlinks properly #10

Closed duckfullstop closed 1 year ago

duckfullstop commented 1 year ago

Wow, I really pulled a doozy when writing #2, didn't I...

This fixes a couple of issues where I didn't expect devices to be symlinks, and parsing of command-line IDs wasn't occurring properly. Next week's task is to write some tests for all of this - a lot of this would have been avoided if I'd just done that in the first place, but my toolchain for working on k8s is a nightmare as it is!