DeviceTaintSelector

data class DeviceTaintSelector(val device: String? = null, val deviceClassName: String? = null, val driver: String? = null, val pool: String? = null, val selectors: List<DeviceSelector>? = null)

DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.

Constructors

Link copied to clipboard
constructor(device: String? = null, deviceClassName: String? = null, driver: String? = null, pool: String? = null, selectors: List<DeviceSelector>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val device: String? = null

If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required.

Link copied to clipboard
val deviceClassName: String? = null

If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.

Link copied to clipboard
val driver: String? = null

If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.

Link copied to clipboard
val pool: String? = null

If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.

Link copied to clipboard

Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.