Class PodFailurePolicy

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<PodFailurePolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class PodFailurePolicy
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<PodFailurePolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    PodFailurePolicy describes how failed pods influence the backoffLimit.
    See Also:
    Serialized Form
    • Constructor Detail

      • PodFailurePolicy

        public PodFailurePolicy()
        No args constructor for use in serialization
    • Method Detail

      • getRules

        public List<PodFailurePolicyRule> getRules()
        A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
      • setRules

        public void setRules​(List<PodFailurePolicyRule> rules)
        A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. 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)