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 for Scheduling
impl PartialEq for Scheduling
Source§impl Serialize for Scheduling
impl Serialize for Scheduling
impl StructuralPartialEq for Scheduling
Auto Trait Implementations§
impl Freeze for Scheduling
impl RefUnwindSafe for Scheduling
impl Send for Scheduling
impl Sync for Scheduling
impl Unpin for Scheduling
impl UnwindSafe for Scheduling
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