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 pool: Output<ResourcePoolArgs>) : 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, pool: Output<ResourcePoolArgs>)

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 and AllNodes 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 and AllNodes 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 and AllNodes must be set.

Link copied to clipboard
val pool: Output<ResourcePoolArgs>

Pool describes the pool that this ResourceSlice belongs to.

Functions

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