squat / generic-device-plugin

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

Execution failed: failed to parse device #50

Closed pmandrik closed 11 months ago

pmandrik commented 11 months ago

Dear developers,

following device flag value taken from https://github.com/squat/generic-device-plugin/#overview is failing at my 22.04.1 ubuntu system:

./bin/amd64/generic-device-plugin --device {"name": "video", "groups": [{"paths": [{"path": "/dev/video0"}]}]}
Execution failed: failed to parse device "{name:": error converting YAML to JSON: yaml: line 1: did not find expected node content

while version with following single quotes works fine: ./bin/amd64/generic-device-plugin --device '{"name": "video", "groups": [{"paths": [{"path": "/dev/video0"}]}]}' please fix if relevant,

Best regards, P.~Mandrik

squat commented 11 months ago

Indeed this does need single quotes! I'm happy to accept a PR fixing it :)