Class V1PodFailurePolicy

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PodFailurePolicy

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PodFailurePolicy extends Object
PodFailurePolicy describes how failed pods influence the backoffLimit.
  • Field Details

  • Constructor Details

  • Method Details

    • getRules

      public List<@Valid V1PodFailurePolicyRule> 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.
      Returns:
      the rules property value
    • setRules

      public void setRules(List<@Valid V1PodFailurePolicyRule> rules)
      Set the rules property value
      Parameters:
      rules - property value to set
    • rules

      public V1PodFailurePolicy rules(List<@Valid V1PodFailurePolicyRule> rules)
      Set rules in a chainable fashion.
      Returns:
      The same instance of V1PodFailurePolicy for chaining.
    • addrulesItem

      public V1PodFailurePolicy addrulesItem(V1PodFailurePolicyRule rulesItem)
      Add an item to the rules property in a chainable fashion.
      Returns:
      The same instance of V1PodFailurePolicy for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object