Class V1PodFailurePolicyRule

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PodFailurePolicyRule extends Object
PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.
  • Field Details

  • Constructor Details

  • Method Details

    • getAction

      public String getAction()
      Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
      Returns:
      the action property value
    • setAction

      public void setAction(String action)
      Set the action property value
    • action

      public V1PodFailurePolicyRule action(String action)
      Set action in a chainable fashion.
      Returns:
      The same instance of V1PodFailurePolicyRule for chaining.
    • getOnExitCodes

      Returns:
      the onExitCodes property value
    • setOnExitCodes

      public void setOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes)
      Set the onExitCodes property value
    • onExitCodes

      Set onExitCodes in a chainable fashion.
      Returns:
      The same instance of V1PodFailurePolicyRule for chaining.
    • getOnPodConditions

      public List<@Valid V1PodFailurePolicyOnPodConditionsPattern> getOnPodConditions()
      Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.
      Returns:
      the onPodConditions property value
    • setOnPodConditions

      public void setOnPodConditions(List<@Valid V1PodFailurePolicyOnPodConditionsPattern> onPodConditions)
      Set the onPodConditions property value
    • onPodConditions

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

      public V1PodFailurePolicyRule addonPodConditionsItem(V1PodFailurePolicyOnPodConditionsPattern onPodConditionsItem)
      Add an item to the onPodConditions property in a chainable fashion.
      Returns:
      The same instance of V1PodFailurePolicyRule 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