ResourceSliceSpecArgs

data class ResourceSliceSpecArgs(val allNodes: Output<Boolean>? = null, val devices: Output<List<DeviceArgs>>? = null, val driver: Output<String>, val nodeName: Output<String>? = null, val nodeSelector: Output<NodeSelectorArgs>? = null, val perDeviceNodeSelection: Output<Boolean>? = null, val pool: Output<ResourcePoolArgs>, val sharedCounters: Output<List<CounterSetArgs>>? = null) : ConvertibleToJava<ResourceSliceSpecArgs>

ResourceSliceSpec contains the information published by the driver in one ResourceSlice.

Constructors

Link copied to clipboard
constructor(allNodes: Output<Boolean>? = null, devices: Output<List<DeviceArgs>>? = null, driver: Output<String>, nodeName: Output<String>? = null, nodeSelector: Output<NodeSelectorArgs>? = null, perDeviceNodeSelection: Output<Boolean>? = null, pool: Output<ResourcePoolArgs>, sharedCounters: Output<List<CounterSetArgs>>? = null)

Properties

Link copied to clipboard
val allNodes: Output<Boolean>? = null

AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.

Link copied to clipboard
val devices: Output<List<DeviceArgs>>? = null

Devices lists some or all of the devices in this pool. Must not have more than 128 entries.

Link copied to clipboard
val driver: Output<String>

Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.

Link copied to clipboard
val nodeName: Output<String>? = null

NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.

Link copied to clipboard
val nodeSelector: Output<NodeSelectorArgs>? = null

NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node. Must use exactly one term. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.

Link copied to clipboard
val perDeviceNodeSelection: Output<Boolean>? = null

PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.

Link copied to clipboard
val pool: Output<ResourcePoolArgs>

Pool describes the pool that this ResourceSlice belongs to.

Link copied to clipboard
val sharedCounters: Output<List<CounterSetArgs>>? = null

SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32.

Functions

Link copied to clipboard
open override fun toJava(): ResourceSliceSpecArgs