struct
Kubernetes::DeviceRequestAllocationResult
- Kubernetes::DeviceRequestAllocationResult
- Struct
- Value
- Object
Overview
DeviceRequestAllocationResult contains the allocation result for one request.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_resource_v1.crgenerated/models/io_k8s_api_resource_v1beta1.cr
generated/models/io_k8s_api_resource_v1beta2.cr
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#admin_access : Bool | Nil
AdminAccess indicates that this device was allocated for administrative access.
-
#admin_access=(admin_access : Bool | Nil)
AdminAccess indicates that this device was allocated for administrative access.
-
#binding_conditions : Array(String) | Nil
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_conditions=(binding_conditions : Array(String) | Nil)
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_conditions=(binding_conditions : Array(String) | Nil)
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_conditions=(binding_conditions : Array(String) | Nil)
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_failure_conditions : Array(String) | Nil
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_failure_conditions=(binding_failure_conditions : Array(String) | Nil)
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_failure_conditions=(binding_failure_conditions : Array(String) | Nil)
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.
-
#binding_failure_conditions=(binding_failure_conditions : Array(String) | Nil)
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.
-
#consumed_capacity : Hash(String, Quantity) | Nil
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
-
#consumed_capacity=(consumed_capacity : Hash(String, Quantity) | Nil)
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
-
#consumed_capacity=(consumed_capacity : Hash(String, Quantity) | Nil)
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
-
#consumed_capacity=(consumed_capacity : Hash(String, Quantity) | Nil)
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
-
#device : String | Nil
Device references one device instance via its name in the driver's resource pool.
-
#device=(device : String | Nil)
Device references one device instance via its name in the driver's resource pool.
-
#driver : String | Nil
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
-
#driver=(driver : String | Nil)
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
-
#pool : String | Nil
This name together with the driver name and the device name field identify which device was allocated (
<driver name>/<pool name>/<device name>). -
#pool=(pool : String | Nil)
This name together with the driver name and the device name field identify which device was allocated (
<driver name>/<pool name>/<device name>). -
#request : String | Nil
Request is the name of the request in the claim which caused this device to be allocated.
-
#request=(request : String | Nil)
Request is the name of the request in the claim which caused this device to be allocated.
-
#share_id : String | Nil
ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations.
-
#share_id=(share_id : String | Nil)
ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations.
-
#tolerations : Array(DeviceToleration) | Nil
A copy of all tolerations specified in the request at the time when the device got allocated.
-
#tolerations=(tolerations : Array(DeviceToleration) | Nil)
A copy of all tolerations specified in the request at the time when the device got allocated.
-
#tolerations=(tolerations : Array(DeviceToleration) | Nil)
A copy of all tolerations specified in the request at the time when the device got allocated.
-
#tolerations=(tolerations : Array(DeviceToleration) | Nil)
A copy of all tolerations specified in the request at the time when the device got allocated.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters.
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters.
This name together with the driver name and the device name field identify which device was allocated (<driver name>/<pool name>/<device name>).
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
This name together with the driver name and the device name field identify which device was allocated (<driver name>/<pool name>/<device name>).
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.