squat / generic-device-plugin

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

path: allow a device to be reused up to X times #19

Closed squat closed 1 year ago

squat commented 1 year ago

In some instances, the cardinality of globbed paths will be different. The new limit field allows each match of a glob to be reused up to

times when other devices in a group yield more matches. For example, if one path in the group matches 5 devices and another matches 1 device but has a limit of 10, then the group will provide 5 pairs of devices. When unspecified, Limit defaults to 1. Signed-off-by: Lucas Servén Marín