pub struct DeviceTaint {
pub effect: String,
pub key: String,
pub time_added: Option<Time>,
pub value: Option<String>,
}Expand description
The device this taint is attached to has the “effect” on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
Fields§
§effect: StringThe effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them.
Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None.
key: StringThe taint key to be applied to a device. Must be a label name.
time_added: Option<Time>TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.
In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).
value: Option<String>The taint value corresponding to the taint key. Must be a label value.
Trait Implementations§
Source§impl Clone for DeviceTaint
impl Clone for DeviceTaint
Source§fn clone(&self) -> DeviceTaint
fn clone(&self) -> DeviceTaint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceTaint
impl Debug for DeviceTaint
Source§impl DeepMerge for DeviceTaint
impl DeepMerge for DeviceTaint
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other into self.Source§impl Default for DeviceTaint
impl Default for DeviceTaint
Source§fn default() -> DeviceTaint
fn default() -> DeviceTaint
Source§impl<'de> Deserialize<'de> for DeviceTaint
impl<'de> Deserialize<'de> for DeviceTaint
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 for DeviceTaint
impl PartialEq for DeviceTaint
Source§fn eq(&self, other: &DeviceTaint) -> bool
fn eq(&self, other: &DeviceTaint) -> bool
self and other values to be equal, and is used by ==.