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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
IntOrString is a type that can hold an int32 or a string.IntOrString is a type that can hold an int32 or a string.UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction.int
hashCode()
maxUnavailable
(String maxUnavailable) Set maxUnavailable in a chainable fashion.minAvailable
(String minAvailable) Set minAvailable in a chainable fashion.selector
(V1LabelSelector selector) Set selector in a chainable fashion.void
setMaxUnavailable
(String maxUnavailable) Set the maxUnavailable property valuevoid
setMinAvailable
(String minAvailable) Set the minAvailable property valuevoid
setSelector
(V1LabelSelector selector) Set the selector property valuevoid
setUnhealthyPodEvictionPolicy
(String unhealthyPodEvictionPolicy) Set the unhealthyPodEvictionPolicy property valuetoString()
unhealthyPodEvictionPolicy
(String unhealthyPodEvictionPolicy) Set unhealthyPodEvictionPolicy in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_MAX_UNAVAILABLE
- See Also:
-
JSON_PROPERTY_MIN_AVAILABLE
- See Also:
-
JSON_PROPERTY_SELECTOR
- See Also:
-
JSON_PROPERTY_UNHEALTHY_POD_EVICTION_POLICY
- See Also:
-
-
Constructor Details
-
V1PodDisruptionBudgetSpec
public V1PodDisruptionBudgetSpec()
-
-
Method Details
-
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
Set the minAvailable property value- Parameters:
minAvailable
- property value to set
-
minAvailable
Set minAvailable in a chainable fashion.- Returns:
- The same instance of V1PodDisruptionBudgetSpec for chaining.
-
getSelector
- Returns:
- the selector property value
-
setSelector
Set the selector property value- Parameters:
selector
- property value to set
-
selector
Set selector in a chainable fashion.- Returns:
- The same instance of V1PodDisruptionBudgetSpec for chaining.
-
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
Set the unhealthyPodEvictionPolicy property value- Parameters:
unhealthyPodEvictionPolicy
- property value to set
-
unhealthyPodEvictionPolicy
Set unhealthyPodEvictionPolicy in a chainable fashion.- Returns:
- The same instance of V1PodDisruptionBudgetSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString