Skip to content

user-defined allow-list of devices in chart #209

@ruzko

Description

@ruzko

Hiya, thanks for making this very convenient device plugin!

I've used the container in my cluster for almost a year now (Home Assistant / Zigbee radio and prind / 3D printer), and I'm excited to see you've published a chart for it 👍

I don't know exactly what capabilities are given to containers running in a privileged context (like generic-device-plugin), so restraint might be useless. With this caveat, the way the chart proxies lots of host devices, without giving the user the option to choose themselves which paths to proxy, feels a bit overzealous (?). ref:

args:
- --device
- |
name: serial
groups:
- paths:
- path: /dev/ttyUSB*
- paths:
- path: /dev/ttyACM*
- paths:
- path: /dev/tty.usb*
- paths:
- path: /dev/cu.*
- paths:
- path: /dev/cuaU*
- paths:
- path: /dev/rfcomm*
- --device
- |
name: video
groups:
- paths:
- path: /dev/video0
- --device
- |
name: fuse
groups:
- count: 10
paths:
- path: /dev/fuse
- --device
- |
name: audio
groups:
- count: 10
paths:
- path: /dev/snd
- --device
- |
name: capture
groups:
- paths:
- path: /dev/snd/controlC0
- path: /dev/snd/pcmC0D0c
- paths:
- path: /dev/snd/controlC1
mountPath: /dev/snd/controlC0
- path: /dev/snd/pcmC1D0c
mountPath: /dev/snd/pcmC0D0c
- paths:
- path: /dev/snd/controlC2
mountPath: /dev/snd/controlC0
- path: /dev/snd/pcmC2D0c
mountPath: /dev/snd/pcmC0D0c
- paths:
- path: /dev/snd/controlC3
mountPath: /dev/snd/controlC0
- path: /dev/snd/pcmC3D0c
mountPath: /dev/snd/pcmC0D0c

Could we get a variable in the chart where we can define which paths to proxy, optionally overriding the defaults?

Again, cheers and much appreciated 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions