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
sourceimpl Clone for Scheduling
impl Clone for Scheduling
sourcefn clone(&self) -> Scheduling
fn clone(&self) -> Scheduling
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Scheduling
impl Debug for Scheduling
sourceimpl DeepMerge for Scheduling
impl DeepMerge for Scheduling
sourcefn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge other
into self
.
sourceimpl Default for Scheduling
impl Default for Scheduling
sourcefn default() -> Scheduling
fn default() -> Scheduling
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Scheduling
impl<'de> Deserialize<'de> for Scheduling
sourcefn 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
sourceimpl PartialEq<Scheduling> for Scheduling
impl PartialEq<Scheduling> for Scheduling
sourcefn 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 ==
. Read more
sourceimpl Serialize for Scheduling
impl Serialize for Scheduling
impl StructuralPartialEq for Scheduling
Auto Trait Implementations
impl RefUnwindSafe for Scheduling
impl Send for Scheduling
impl Sync for Scheduling
impl Unpin for Scheduling
impl UnwindSafe for Scheduling
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more