Struct k8s_openapi::api::policy::v1::PodDisruptionBudgetSpec
source · [−]pub struct PodDisruptionBudgetSpec {
pub max_unavailable: Option<IntOrString>,
pub min_available: Option<IntOrString>,
pub selector: Option<LabelSelector>,
}
Expand description
PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
Fields
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”.
min_available: Option<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%”.
selector: Option<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.
Trait Implementations
sourceimpl Clone for PodDisruptionBudgetSpec
impl Clone for PodDisruptionBudgetSpec
sourcefn clone(&self) -> PodDisruptionBudgetSpec
fn clone(&self) -> PodDisruptionBudgetSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PodDisruptionBudgetSpec
impl Debug for PodDisruptionBudgetSpec
sourceimpl Default for PodDisruptionBudgetSpec
impl Default for PodDisruptionBudgetSpec
sourcefn default() -> PodDisruptionBudgetSpec
fn default() -> PodDisruptionBudgetSpec
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PodDisruptionBudgetSpec
impl<'de> Deserialize<'de> for PodDisruptionBudgetSpec
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PodDisruptionBudgetSpec> for PodDisruptionBudgetSpec
impl PartialEq<PodDisruptionBudgetSpec> for PodDisruptionBudgetSpec
sourcefn eq(&self, other: &PodDisruptionBudgetSpec) -> bool
fn eq(&self, other: &PodDisruptionBudgetSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PodDisruptionBudgetSpec) -> bool
fn ne(&self, other: &PodDisruptionBudgetSpec) -> bool
This method tests for !=
.
sourceimpl Serialize for PodDisruptionBudgetSpec
impl Serialize for PodDisruptionBudgetSpec
impl StructuralPartialEq for PodDisruptionBudgetSpec
Auto Trait Implementations
impl RefUnwindSafe for PodDisruptionBudgetSpec
impl Send for PodDisruptionBudgetSpec
impl Sync for PodDisruptionBudgetSpec
impl Unpin for PodDisruptionBudgetSpec
impl UnwindSafe for PodDisruptionBudgetSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more