Class V1PodDisruptionBudgetSpec

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PodDisruptionBudgetSpec extends Object
PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
  • Field Details

  • Constructor Details

    • V1PodDisruptionBudgetSpec

      public V1PodDisruptionBudgetSpec()
  • Method Details

    • getMaxUnavailable

      public String getMaxUnavailable()
      IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
      Returns:
      the maxUnavailable property value
    • setMaxUnavailable

      public void setMaxUnavailable(String maxUnavailable)
      Set the maxUnavailable property value
    • maxUnavailable

      public V1PodDisruptionBudgetSpec maxUnavailable(String maxUnavailable)
      Set maxUnavailable in a chainable fashion.
      Returns:
      The same instance of V1PodDisruptionBudgetSpec for chaining.
    • getMinAvailable

      public String getMinAvailable()
      IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
      Returns:
      the minAvailable property value
    • setMinAvailable

      public void setMinAvailable(String minAvailable)
      Set the minAvailable property value
    • minAvailable

      public V1PodDisruptionBudgetSpec minAvailable(String minAvailable)
      Set minAvailable in a chainable fashion.
      Returns:
      The same instance of V1PodDisruptionBudgetSpec for chaining.
    • getSelector

      public V1LabelSelector getSelector()
      Returns:
      the selector property value
    • setSelector

      public void setSelector(V1LabelSelector selector)
      Set the selector property value
    • selector

      public V1PodDisruptionBudgetSpec selector(V1LabelSelector selector)
      Set selector in a chainable fashion.
      Returns:
      The same instance of V1PodDisruptionBudgetSpec for chaining.
    • getUnhealthyPodEvictionPolicy

      public String getUnhealthyPodEvictionPolicy()
      UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).
      Returns:
      the unhealthyPodEvictionPolicy property value
    • setUnhealthyPodEvictionPolicy

      public void setUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy)
      Set the unhealthyPodEvictionPolicy property value
    • unhealthyPodEvictionPolicy

      public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy)
      Set unhealthyPodEvictionPolicy in a chainable fashion.
      Returns:
      The same instance of V1PodDisruptionBudgetSpec 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