Package-level declarations

Types

Link copied to clipboard
data class AllocatedDeviceStatusArgs(val conditions: Output<List<ConditionArgs>>? = null, val data: Output<JsonElement>? = null, val device: Output<String>, val driver: Output<String>, val networkData: Output<NetworkDeviceDataArgs>? = null, val pool: Output<String>) : ConvertibleToJava<AllocatedDeviceStatusArgs>

AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.

Link copied to clipboard
data class AllocationResultArgs(val devices: Output<DeviceAllocationResultArgs>? = null, val nodeSelector: Output<NodeSelectorArgs>? = null) : ConvertibleToJava<AllocationResultArgs>

AllocationResult contains attributes of an allocated resource.

Link copied to clipboard
data class BasicDeviceArgs(val allNodes: Output<Boolean>? = null, val attributes: Output<Map<String, DeviceAttributeArgs>>? = null, val capacity: Output<Map<String, DeviceCapacityArgs>>? = null, val consumesCounters: Output<List<DeviceCounterConsumptionArgs>>? = null, val nodeName: Output<String>? = null, val nodeSelector: Output<NodeSelectorArgs>? = null, val taints: Output<List<DeviceTaintArgs>>? = null) : ConvertibleToJava<BasicDeviceArgs>

BasicDevice defines one device instance.

Link copied to clipboard
Link copied to clipboard
data class BasicDevicePatchArgs(val allNodes: Output<Boolean>? = null, val attributes: Output<Map<String, DeviceAttributeArgs>>? = null, val capacity: Output<Map<String, DeviceCapacityArgs>>? = null, val consumesCounters: Output<List<DeviceCounterConsumptionPatchArgs>>? = null, val nodeName: Output<String>? = null, val nodeSelector: Output<NodeSelectorPatchArgs>? = null, val taints: Output<List<DeviceTaintPatchArgs>>? = null) : ConvertibleToJava<BasicDevicePatchArgs>

BasicDevice defines one device instance.

Link copied to clipboard
data class CELDeviceSelectorArgs(val expression: Output<String>) : ConvertibleToJava<CELDeviceSelectorArgs>

CELDeviceSelector contains a CEL expression for selecting a device.

Link copied to clipboard
data class CELDeviceSelectorPatchArgs(val expression: Output<String>? = null) : ConvertibleToJava<CELDeviceSelectorPatchArgs>

CELDeviceSelector contains a CEL expression for selecting a device.

Link copied to clipboard
data class CounterArgs(val value: Output<String>) : ConvertibleToJava<CounterArgs>

Counter describes a quantity associated with a device.

Link copied to clipboard
Link copied to clipboard
data class CounterSetArgs(val counters: Output<Map<String, CounterArgs>>, val name: Output<String>) : ConvertibleToJava<CounterSetArgs>

CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.

Link copied to clipboard
Link copied to clipboard
data class CounterSetPatchArgs(val counters: Output<Map<String, CounterArgs>>? = null, val name: Output<String>? = null) : ConvertibleToJava<CounterSetPatchArgs>

CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.

Link copied to clipboard
data class DeviceAllocationConfigurationArgs(val opaque: Output<OpaqueDeviceConfigurationArgs>? = null, val requests: Output<List<String>>? = null, val source: Output<String>) : ConvertibleToJava<DeviceAllocationConfigurationArgs>

DeviceAllocationConfiguration gets embedded in an AllocationResult.

Link copied to clipboard
data class DeviceAllocationResultArgs(val config: Output<List<DeviceAllocationConfigurationArgs>>? = null, val results: Output<List<DeviceRequestAllocationResultArgs>>? = null) : ConvertibleToJava<DeviceAllocationResultArgs>

DeviceAllocationResult is the result of allocating devices.

Link copied to clipboard
data class DeviceArgs(val basic: Output<BasicDeviceArgs>? = null, val name: Output<String>) : ConvertibleToJava<DeviceArgs>

Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.

Link copied to clipboard

Builder for DeviceArgs.

Link copied to clipboard
data class DeviceAttributeArgs(val bool: Output<Boolean>? = null, val int: Output<Int>? = null, val string: Output<String>? = null, val version: Output<String>? = null) : ConvertibleToJava<DeviceAttributeArgs>

DeviceAttribute must have exactly one field set.

Link copied to clipboard
data class DeviceCapacityArgs(val value: Output<String>) : ConvertibleToJava<DeviceCapacityArgs>

DeviceCapacity describes a quantity associated with a device.

Link copied to clipboard
Link copied to clipboard
data class DeviceClaimArgs(val config: Output<List<DeviceClaimConfigurationArgs>>? = null, val constraints: Output<List<DeviceConstraintArgs>>? = null, val requests: Output<List<DeviceRequestArgs>>? = null) : ConvertibleToJava<DeviceClaimArgs>

DeviceClaim defines how to request devices with a ResourceClaim.

Link copied to clipboard
Link copied to clipboard
data class DeviceClaimConfigurationArgs(val opaque: Output<OpaqueDeviceConfigurationArgs>? = null, val requests: Output<List<String>>? = null) : ConvertibleToJava<DeviceClaimConfigurationArgs>

DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.

Link copied to clipboard
data class DeviceClaimConfigurationPatchArgs(val opaque: Output<OpaqueDeviceConfigurationPatchArgs>? = null, val requests: Output<List<String>>? = null) : ConvertibleToJava<DeviceClaimConfigurationPatchArgs>

DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.

Link copied to clipboard
data class DeviceClaimPatchArgs(val config: Output<List<DeviceClaimConfigurationPatchArgs>>? = null, val constraints: Output<List<DeviceConstraintPatchArgs>>? = null, val requests: Output<List<DeviceRequestPatchArgs>>? = null) : ConvertibleToJava<DeviceClaimPatchArgs>

DeviceClaim defines how to request devices with a ResourceClaim.

Link copied to clipboard
data class DeviceClassArgs(val apiVersion: Output<String>? = null, val kind: Output<String>? = null, val metadata: Output<ObjectMetaArgs>? = null, val spec: Output<DeviceClassSpecArgs>) : ConvertibleToJava<DeviceClassArgs>

DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.

Link copied to clipboard
Link copied to clipboard
data class DeviceClassConfigurationArgs(val opaque: Output<OpaqueDeviceConfigurationArgs>? = null) : ConvertibleToJava<DeviceClassConfigurationArgs>

DeviceClassConfiguration is used in DeviceClass.

Link copied to clipboard
data class DeviceClassConfigurationPatchArgs(val opaque: Output<OpaqueDeviceConfigurationPatchArgs>? = null) : ConvertibleToJava<DeviceClassConfigurationPatchArgs>

DeviceClassConfiguration is used in DeviceClass.

Link copied to clipboard
data class DeviceClassSpecArgs(val config: Output<List<DeviceClassConfigurationArgs>>? = null, val selectors: Output<List<DeviceSelectorArgs>>? = null) : ConvertibleToJava<DeviceClassSpecArgs>

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

Link copied to clipboard
data class DeviceClassSpecPatchArgs(val config: Output<List<DeviceClassConfigurationPatchArgs>>? = null, val selectors: Output<List<DeviceSelectorPatchArgs>>? = null) : ConvertibleToJava<DeviceClassSpecPatchArgs>

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

Link copied to clipboard
data class DeviceConstraintArgs(val matchAttribute: Output<String>? = null, val requests: Output<List<String>>? = null) : ConvertibleToJava<DeviceConstraintArgs>

DeviceConstraint must have exactly one field set besides Requests.

Link copied to clipboard
data class DeviceConstraintPatchArgs(val matchAttribute: Output<String>? = null, val requests: Output<List<String>>? = null) : ConvertibleToJava<DeviceConstraintPatchArgs>

DeviceConstraint must have exactly one field set besides Requests.

Link copied to clipboard
data class DeviceCounterConsumptionArgs(val counterSet: Output<String>, val counters: Output<Map<String, CounterArgs>>) : ConvertibleToJava<DeviceCounterConsumptionArgs>

DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.

Link copied to clipboard
data class DeviceCounterConsumptionPatchArgs(val counterSet: Output<String>? = null, val counters: Output<Map<String, CounterArgs>>? = null) : ConvertibleToJava<DeviceCounterConsumptionPatchArgs>

DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.

Link copied to clipboard
data class DevicePatchArgs(val basic: Output<BasicDevicePatchArgs>? = null, val name: Output<String>? = null) : ConvertibleToJava<DevicePatchArgs>

Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.

Link copied to clipboard
Link copied to clipboard
data class DeviceRequestAllocationResultArgs(val adminAccess: Output<Boolean>? = null, val device: Output<String>, val driver: Output<String>, val pool: Output<String>, val request: Output<String>, val tolerations: Output<List<DeviceTolerationArgs>>? = null) : ConvertibleToJava<DeviceRequestAllocationResultArgs>

DeviceRequestAllocationResult contains the allocation result for one request.

Link copied to clipboard
data class DeviceRequestArgs(val adminAccess: Output<Boolean>? = null, val allocationMode: Output<String>? = null, val count: Output<Int>? = null, val deviceClassName: Output<String>? = null, val firstAvailable: Output<List<DeviceSubRequestArgs>>? = null, val name: Output<String>, val selectors: Output<List<DeviceSelectorArgs>>? = null, val tolerations: Output<List<DeviceTolerationArgs>>? = null) : ConvertibleToJava<DeviceRequestArgs>

DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.

Link copied to clipboard
Link copied to clipboard
data class DeviceRequestPatchArgs(val adminAccess: Output<Boolean>? = null, val allocationMode: Output<String>? = null, val count: Output<Int>? = null, val deviceClassName: Output<String>? = null, val firstAvailable: Output<List<DeviceSubRequestPatchArgs>>? = null, val name: Output<String>? = null, val selectors: Output<List<DeviceSelectorPatchArgs>>? = null, val tolerations: Output<List<DeviceTolerationPatchArgs>>? = null) : ConvertibleToJava<DeviceRequestPatchArgs>

DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.

Link copied to clipboard
data class DeviceSelectorArgs(val cel: Output<CELDeviceSelectorArgs>? = null) : ConvertibleToJava<DeviceSelectorArgs>

DeviceSelector must have exactly one field set.

Link copied to clipboard
Link copied to clipboard
data class DeviceSelectorPatchArgs(val cel: Output<CELDeviceSelectorPatchArgs>? = null) : ConvertibleToJava<DeviceSelectorPatchArgs>

DeviceSelector must have exactly one field set.

Link copied to clipboard
data class DeviceSubRequestArgs(val allocationMode: Output<String>? = null, val count: Output<Int>? = null, val deviceClassName: Output<String>, val name: Output<String>, val selectors: Output<List<DeviceSelectorArgs>>? = null, val tolerations: Output<List<DeviceTolerationArgs>>? = null) : ConvertibleToJava<DeviceSubRequestArgs>

DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.

Link copied to clipboard
data class DeviceSubRequestPatchArgs(val allocationMode: Output<String>? = null, val count: Output<Int>? = null, val deviceClassName: Output<String>? = null, val name: Output<String>? = null, val selectors: Output<List<DeviceSelectorPatchArgs>>? = null, val tolerations: Output<List<DeviceTolerationPatchArgs>>? = null) : ConvertibleToJava<DeviceSubRequestPatchArgs>

DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.

Link copied to clipboard
data class DeviceTaintArgs(val effect: Output<String>, val key: Output<String>, val timeAdded: Output<String>? = null, val value: Output<String>? = null) : ConvertibleToJava<DeviceTaintArgs>

The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.

Link copied to clipboard
Link copied to clipboard
data class DeviceTaintPatchArgs(val effect: Output<String>? = null, val key: Output<String>? = null, val timeAdded: Output<String>? = null, val value: Output<String>? = null) : ConvertibleToJava<DeviceTaintPatchArgs>

The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.

Link copied to clipboard
data class DeviceTolerationArgs(val effect: Output<String>? = null, val key: Output<String>? = null, val operator: Output<String>? = null, val tolerationSeconds: Output<Int>? = null, val value: Output<String>? = null) : ConvertibleToJava<DeviceTolerationArgs>

The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .

Link copied to clipboard
data class DeviceTolerationPatchArgs(val effect: Output<String>? = null, val key: Output<String>? = null, val operator: Output<String>? = null, val tolerationSeconds: Output<Int>? = null, val value: Output<String>? = null) : ConvertibleToJava<DeviceTolerationPatchArgs>

The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .

Link copied to clipboard
data class NetworkDeviceDataArgs(val hardwareAddress: Output<String>? = null, val interfaceName: Output<String>? = null, val ips: Output<List<String>>? = null) : ConvertibleToJava<NetworkDeviceDataArgs>

NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.

Link copied to clipboard
data class OpaqueDeviceConfigurationArgs(val driver: Output<String>, val parameters: Output<JsonElement>) : ConvertibleToJava<OpaqueDeviceConfigurationArgs>

OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.

Link copied to clipboard
data class OpaqueDeviceConfigurationPatchArgs(val driver: Output<String>? = null, val parameters: Output<JsonElement>? = null) : ConvertibleToJava<OpaqueDeviceConfigurationPatchArgs>

OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.

Link copied to clipboard
data class ResourceClaimArgs(val apiVersion: Output<String>? = null, val kind: Output<String>? = null, val metadata: Output<ObjectMetaArgs>? = null, val spec: Output<ResourceClaimSpecArgs>, val status: Output<ResourceClaimStatusArgs>? = null) : ConvertibleToJava<ResourceClaimArgs>

ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.

Link copied to clipboard
Link copied to clipboard
data class ResourceClaimConsumerReferenceArgs(val apiGroup: Output<String>? = null, val name: Output<String>, val resource: Output<String>, val uid: Output<String>) : ConvertibleToJava<ResourceClaimConsumerReferenceArgs>

ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.

Link copied to clipboard
data class ResourceClaimSpecArgs(val devices: Output<DeviceClaimArgs>? = null) : ConvertibleToJava<ResourceClaimSpecArgs>

ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.

Link copied to clipboard
data class ResourceClaimSpecPatchArgs(val devices: Output<DeviceClaimPatchArgs>? = null) : ConvertibleToJava<ResourceClaimSpecPatchArgs>

ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.

Link copied to clipboard
data class ResourceClaimStatusArgs(val allocation: Output<AllocationResultArgs>? = null, val devices: Output<List<AllocatedDeviceStatusArgs>>? = null, val reservedFor: Output<List<ResourceClaimConsumerReferenceArgs>>? = null) : ConvertibleToJava<ResourceClaimStatusArgs>

ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.

Link copied to clipboard
data class ResourceClaimTemplateArgs(val apiVersion: Output<String>? = null, val kind: Output<String>? = null, val metadata: Output<ObjectMetaArgs>? = null, val spec: Output<ResourceClaimTemplateSpecArgs>) : ConvertibleToJava<ResourceClaimTemplateArgs>

ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.

Link copied to clipboard
data class ResourceClaimTemplateSpecArgs(val metadata: Output<ObjectMetaArgs>? = null, val spec: Output<ResourceClaimSpecArgs>) : ConvertibleToJava<ResourceClaimTemplateSpecArgs>

ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.

Link copied to clipboard
data class ResourceClaimTemplateSpecPatchArgs(val metadata: Output<ObjectMetaPatchArgs>? = null, val spec: Output<ResourceClaimSpecPatchArgs>? = null) : ConvertibleToJava<ResourceClaimTemplateSpecPatchArgs>

ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.

Link copied to clipboard
data class ResourcePoolArgs(val generation: Output<Int>, val name: Output<String>, val resourceSliceCount: Output<Int>) : ConvertibleToJava<ResourcePoolArgs>

ResourcePool describes the pool that ResourceSlices belong to.

Link copied to clipboard
Link copied to clipboard
data class ResourcePoolPatchArgs(val generation: Output<Int>? = null, val name: Output<String>? = null, val resourceSliceCount: Output<Int>? = null) : ConvertibleToJava<ResourcePoolPatchArgs>

ResourcePool describes the pool that ResourceSlices belong to.

Link copied to clipboard
data class ResourceSliceArgs(val apiVersion: Output<String>? = null, val kind: Output<String>? = null, val metadata: Output<ObjectMetaArgs>? = null, val spec: Output<ResourceSliceSpecArgs>) : ConvertibleToJava<ResourceSliceArgs>

ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.

Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
data class ResourceSliceSpecPatchArgs(val allNodes: Output<Boolean>? = null, val devices: Output<List<DevicePatchArgs>>? = null, val driver: Output<String>? = null, val nodeName: Output<String>? = null, val nodeSelector: Output<NodeSelectorPatchArgs>? = null, val perDeviceNodeSelection: Output<Boolean>? = null, val pool: Output<ResourcePoolPatchArgs>? = null, val sharedCounters: Output<List<CounterSetPatchArgs>>? = null) : ConvertibleToJava<ResourceSliceSpecPatchArgs>

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