Class V1PodDisruptionBudgetSpec

java.lang.Object
io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T21:37:40.170033Z[Etc/UTC]") public class V1PodDisruptionBudgetSpec extends Object
PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
  • Field Details

  • Constructor Details

    • V1PodDisruptionBudgetSpec

      public V1PodDisruptionBudgetSpec()
  • Method Details

    • maxUnavailable

      public V1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable)
    • getMaxUnavailable

      @Nullable public IntOrString 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:
      maxUnavailable
    • setMaxUnavailable

      public void setMaxUnavailable(IntOrString maxUnavailable)
    • minAvailable

      public V1PodDisruptionBudgetSpec minAvailable(IntOrString minAvailable)
    • getMinAvailable

      @Nullable public IntOrString 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:
      minAvailable
    • setMinAvailable

      public void setMinAvailable(IntOrString minAvailable)
    • selector

      public V1PodDisruptionBudgetSpec selector(V1LabelSelector selector)
    • getSelector

      @Nullable public V1LabelSelector getSelector()
      Get selector
      Returns:
      selector
    • setSelector

      public void setSelector(V1LabelSelector selector)
    • unhealthyPodEvictionPolicy

      public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy)
    • getUnhealthyPodEvictionPolicy

      @Nullable 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:
      unhealthyPodEvictionPolicy
    • setUnhealthyPodEvictionPolicy

      public void setUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy)
    • 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