Struct k8s_openapi::api::node::v1::Scheduling
source · pub struct Scheduling {
pub node_selector: Option<BTreeMap<String, String>>,
pub tolerations: Option<Vec<Toleration>>,
}
Expand description
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
Fields§
§node_selector: Option<BTreeMap<String, String>>
nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod’s existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
tolerations: Option<Vec<Toleration>>
tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
Trait Implementations§
source§impl Clone for Scheduling
impl Clone for Scheduling
source§fn clone(&self) -> Scheduling
fn clone(&self) -> Scheduling
Returns a copy 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 Scheduling
impl Debug for Scheduling
source§impl DeepMerge for Scheduling
impl DeepMerge for Scheduling
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for Scheduling
impl Default for Scheduling
source§fn default() -> Scheduling
fn default() -> Scheduling
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Scheduling
impl<'de> Deserialize<'de> for Scheduling
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 PartialEq<Scheduling> for Scheduling
impl PartialEq<Scheduling> for Scheduling
source§fn eq(&self, other: &Scheduling) -> bool
fn eq(&self, other: &Scheduling) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.