Struct k8s_openapi::v1_8::api::policy::v1beta1::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.
Trait Implementations§
source§impl Clone for PodDisruptionBudgetSpec
impl Clone for PodDisruptionBudgetSpec
source§fn clone(&self) -> PodDisruptionBudgetSpec
fn clone(&self) -> PodDisruptionBudgetSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PodDisruptionBudgetSpec
impl Debug for PodDisruptionBudgetSpec
source§impl Default for PodDisruptionBudgetSpec
impl Default for PodDisruptionBudgetSpec
source§fn default() -> PodDisruptionBudgetSpec
fn default() -> PodDisruptionBudgetSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PodDisruptionBudgetSpec
impl<'de> Deserialize<'de> for PodDisruptionBudgetSpec
source§fn 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