DeviceClassSpec

data class DeviceClassSpec(val config: List<DeviceClassConfiguration>? = null, val selectors: List<DeviceSelector>? = null, val suitableNodes: NodeSelector? = null)

DeviceClassSpec is used in a DeviceClass to define what can be allocated and how to configure it.

Constructors

Link copied to clipboard
constructor(config: List<DeviceClassConfiguration>? = null, selectors: List<DeviceSelector>? = null, suitableNodes: NodeSelector? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.

Link copied to clipboard

Each selector must be satisfied by a device which is claimed via this class.

Link copied to clipboard

Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet and that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation. Setting this field is optional. If unset, all Nodes are candidates. This is an alpha field and requires enabling the DRAControlPlaneController feature gate.