Struct k8s_openapi::api::resource::v1alpha2::AllocationResult
source · pub struct AllocationResult {
pub available_on_nodes: Option<NodeSelector>,
pub resource_handles: Option<Vec<ResourceHandle>>,
pub shareable: Option<bool>,
}
Expand description
AllocationResult contains attributes of an allocated resource.
Fields§
§available_on_nodes: Option<NodeSelector>
This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim.
Setting this field is optional. If null, the resource is available everywhere.
resource_handles: Option<Vec<ResourceHandle>>
ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.
Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.
Shareable determines whether the resource supports more than one consumer at a time.
Trait Implementations§
source§impl Clone for AllocationResult
impl Clone for AllocationResult
source§fn clone(&self) -> AllocationResult
fn clone(&self) -> AllocationResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AllocationResult
impl Debug for AllocationResult
source§impl DeepMerge for AllocationResult
impl DeepMerge for AllocationResult
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for AllocationResult
impl Default for AllocationResult
source§fn default() -> AllocationResult
fn default() -> AllocationResult
source§impl<'de> Deserialize<'de> for AllocationResult
impl<'de> Deserialize<'de> for AllocationResult
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<AllocationResult> for AllocationResult
impl PartialEq<AllocationResult> for AllocationResult
source§fn eq(&self, other: &AllocationResult) -> bool
fn eq(&self, other: &AllocationResult) -> bool
self
and other
values to be equal, and is used
by ==
.