BasicDevicePatch

data class BasicDevicePatch(val allNodes: Boolean? = null, val attributes: Map<String, DeviceAttribute>? = null, val capacity: Map<String, DeviceCapacity>? = null, val consumesCounters: List<DeviceCounterConsumptionPatch>? = null, val nodeName: String? = null, val nodeSelector: NodeSelectorPatch? = null, val taints: List<DeviceTaintPatch>? = null)

BasicDevice defines one device instance.

Constructors

Link copied to clipboard
constructor(allNodes: Boolean? = null, attributes: Map<String, DeviceAttribute>? = null, capacity: Map<String, DeviceCapacity>? = null, consumesCounters: List<DeviceCounterConsumptionPatch>? = null, nodeName: String? = null, nodeSelector: NodeSelectorPatch? = null, taints: List<DeviceTaintPatch>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val allNodes: Boolean? = null

AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

Link copied to clipboard

Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.

Link copied to clipboard

Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.

Link copied to clipboard

ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).

Link copied to clipboard
val nodeName: String? = null

NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

Link copied to clipboard

NodeSelector defines the nodes where the device is available. Must use exactly one term. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

Link copied to clipboard

If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate.