PodDisruptionBudgetSpec class

PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.

Constructors

PodDisruptionBudgetSpec({IntOrString? maxUnavailable, IntOrString? minAvailable, LabelSelector? selector, String? unhealthyPodEvictionPolicy})
Default constructor.
const
PodDisruptionBudgetSpec.fromJson(Map<String, dynamic> json)
Creates a PodDisruptionBudgetSpec from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxUnavailable IntOrString?
An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable".
final
minAvailable IntOrString?
An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%".
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector LabelSelector?
Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.
final
unhealthyPodEvictionPolicy String?
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".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a PodDisruptionBudgetSpec instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited