Class SuccessPolicy
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.batch.v1.SuccessPolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SuccessPolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SuccessPolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<SuccessPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuccessPolicy()No args constructor for use in serializationSuccessPolicy(List<SuccessPolicyRule> rules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuccessPolicyBuilderedit()Map<String,Object>getAdditionalProperties()List<SuccessPolicyRule>getRules()rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetRules(List<SuccessPolicyRule> rules)rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`.SuccessPolicyBuildertoBuilder()
-
-
-
Constructor Detail
-
SuccessPolicy
public SuccessPolicy()
No args constructor for use in serialization
-
SuccessPolicy
public SuccessPolicy(List<SuccessPolicyRule> rules)
-
-
Method Detail
-
getRules
public List<SuccessPolicyRule> getRules()
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 "SuccessCriteriaMet" 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.
-
setRules
public void setRules(List<SuccessPolicyRule> 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 "SuccessCriteriaMet" 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.
-
edit
public SuccessPolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SuccessPolicyBuilder>
-
toBuilder
public SuccessPolicyBuilder toBuilder()
-
-