![JAR search and dependency download from the Maven repository](/logo.png)
io.k8s.api.batch.v1.SuccessPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.batch.v1;
import java.util.List;
/**
* SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
*/
public class SuccessPolicy {
public List rules;
/**
* 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.
*/
public SuccessPolicy rules(List rules) {
this.rules = rules;
return this;
}
public static SuccessPolicy successPolicy() {
return new SuccessPolicy();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy