Class 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 Detail

      • SuccessPolicy

        public SuccessPolicy()
        No args constructor for use in serialization
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)