pub struct PodSchedulingContextSpec {
pub potential_nodes: Option<Vec<String>>,
pub selected_node: Option<String>,
}
Expand description
PodSchedulingContextSpec describes where resources for the Pod are needed.
Fields§
§potential_nodes: Option<Vec<String>>
PotentialNodes lists nodes where the Pod might be able to run.
The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
selected_node: Option<String>
SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use “WaitForFirstConsumer” allocation is to be attempted.
Trait Implementations§
Source§impl Clone for PodSchedulingContextSpec
impl Clone for PodSchedulingContextSpec
Source§fn clone(&self) -> PodSchedulingContextSpec
fn clone(&self) -> PodSchedulingContextSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PodSchedulingContextSpec
impl Debug for PodSchedulingContextSpec
Source§impl DeepMerge for PodSchedulingContextSpec
impl DeepMerge for PodSchedulingContextSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for PodSchedulingContextSpec
impl Default for PodSchedulingContextSpec
Source§fn default() -> PodSchedulingContextSpec
fn default() -> PodSchedulingContextSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodSchedulingContextSpec
impl<'de> Deserialize<'de> for PodSchedulingContextSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PodSchedulingContextSpec
impl JsonSchema for PodSchedulingContextSpec
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for PodSchedulingContextSpec
impl PartialEq for PodSchedulingContextSpec
Source§impl Serialize for PodSchedulingContextSpec
impl Serialize for PodSchedulingContextSpec
impl StructuralPartialEq for PodSchedulingContextSpec
Auto Trait Implementations§
impl Freeze for PodSchedulingContextSpec
impl RefUnwindSafe for PodSchedulingContextSpec
impl Send for PodSchedulingContextSpec
impl Sync for PodSchedulingContextSpec
impl Unpin for PodSchedulingContextSpec
impl UnwindSafe for PodSchedulingContextSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more