pub struct DeviceRequestAllocationResult {
pub admin_access: Option<bool>,
pub binding_conditions: Option<Vec<String>>,
pub binding_failure_conditions: Option<Vec<String>>,
pub consumed_capacity: Option<BTreeMap<String, Quantity>>,
pub device: String,
pub driver: String,
pub pool: String,
pub request: String,
pub share_id: Option<String>,
pub tolerations: Option<Vec<DeviceToleration>>,
}
Expand description
DeviceRequestAllocationResult contains the allocation result for one request.
Fields§
§admin_access: Option<bool>
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.
binding_conditions: Option<Vec<String>>
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.
binding_failure_conditions: Option<Vec<String>>
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.
consumed_capacity: Option<BTreeMap<String, Quantity>>
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: String
Device references one device instance via its name in the driver’s resource pool. It must be a DNS label.
driver: String
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.
pool: String
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: String
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 <main request>/<subrequest>.
Multiple devices may have been allocated per request.
ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.
tolerations: Option<Vec<DeviceToleration>>
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.
Trait Implementations§
Source§impl Clone for DeviceRequestAllocationResult
impl Clone for DeviceRequestAllocationResult
Source§fn clone(&self) -> DeviceRequestAllocationResult
fn clone(&self) -> DeviceRequestAllocationResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DeepMerge for DeviceRequestAllocationResult
impl DeepMerge for DeviceRequestAllocationResult
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.Source§impl Default for DeviceRequestAllocationResult
impl Default for DeviceRequestAllocationResult
Source§fn default() -> DeviceRequestAllocationResult
fn default() -> DeviceRequestAllocationResult
Source§impl<'de> Deserialize<'de> for DeviceRequestAllocationResult
impl<'de> Deserialize<'de> for DeviceRequestAllocationResult
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl PartialEq for DeviceRequestAllocationResult
impl PartialEq for DeviceRequestAllocationResult
Source§fn eq(&self, other: &DeviceRequestAllocationResult) -> bool
fn eq(&self, other: &DeviceRequestAllocationResult) -> bool
self
and other
values to be equal, and is used by ==
.