Skip to main content
Schemaobject

io.k8s.api.resource.v1beta2.CELDeviceSelector

CELDeviceSelector contains a CEL expression for selecting a device.

Source
specs/apis__resource.k8s.io__v1beta2_openapi.json
Revision
9a79c3bd90f7
Active snapshot
2a9112600697
expression string
required

Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named "device", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. devic…