pub struct SuccessPolicy {
pub rules: Vec<SuccessPolicyRule>,
}
Expand description
SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
Fields§
§rules: Vec<SuccessPolicyRule>
rules represents the list of alternative rules for the declaring the Jobs as successful before .status.succeeded \>= .spec.completions
. Once any of the rules are met, the “SucceededCriteriaMet” condition is added, and the lingering pods are removed. The terminal state for such a Job has the “Complete” condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
Trait Implementations§
Source§impl Clone for SuccessPolicy
impl Clone for SuccessPolicy
Source§fn clone(&self) -> SuccessPolicy
fn clone(&self) -> SuccessPolicy
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 SuccessPolicy
impl Debug for SuccessPolicy
Source§impl DeepMerge for SuccessPolicy
impl DeepMerge for SuccessPolicy
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for SuccessPolicy
impl Default for SuccessPolicy
Source§fn default() -> SuccessPolicy
fn default() -> SuccessPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuccessPolicy
impl<'de> Deserialize<'de> for SuccessPolicy
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 SuccessPolicy
impl PartialEq for SuccessPolicy
Source§impl Serialize for SuccessPolicy
impl Serialize for SuccessPolicy
impl StructuralPartialEq for SuccessPolicy
Auto Trait Implementations§
impl Freeze for SuccessPolicy
impl RefUnwindSafe for SuccessPolicy
impl Send for SuccessPolicy
impl Sync for SuccessPolicy
impl Unpin for SuccessPolicy
impl UnwindSafe for SuccessPolicy
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