Struct k8s_openapi::api::apps::v1::RollingUpdateStatefulSetStrategy
source · [−]pub struct RollingUpdateStatefulSetStrategy {
pub max_unavailable: Option<IntOrString>,
pub partition: Option<i32>,
}
Expand description
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
Fields
The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.
partition: Option<i32>
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
Trait Implementations
sourceimpl Clone for RollingUpdateStatefulSetStrategy
impl Clone for RollingUpdateStatefulSetStrategy
sourcefn clone(&self) -> RollingUpdateStatefulSetStrategy
fn clone(&self) -> RollingUpdateStatefulSetStrategy
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 Default for RollingUpdateStatefulSetStrategy
impl Default for RollingUpdateStatefulSetStrategy
sourcefn default() -> RollingUpdateStatefulSetStrategy
fn default() -> RollingUpdateStatefulSetStrategy
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RollingUpdateStatefulSetStrategy
impl<'de> Deserialize<'de> for RollingUpdateStatefulSetStrategy
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<RollingUpdateStatefulSetStrategy> for RollingUpdateStatefulSetStrategy
impl PartialEq<RollingUpdateStatefulSetStrategy> for RollingUpdateStatefulSetStrategy
sourcefn eq(&self, other: &RollingUpdateStatefulSetStrategy) -> bool
fn eq(&self, other: &RollingUpdateStatefulSetStrategy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RollingUpdateStatefulSetStrategy) -> bool
fn ne(&self, other: &RollingUpdateStatefulSetStrategy) -> bool
This method tests for !=
.
impl StructuralPartialEq for RollingUpdateStatefulSetStrategy
Auto Trait Implementations
impl RefUnwindSafe for RollingUpdateStatefulSetStrategy
impl Send for RollingUpdateStatefulSetStrategy
impl Sync for RollingUpdateStatefulSetStrategy
impl Unpin for RollingUpdateStatefulSetStrategy
impl UnwindSafe for RollingUpdateStatefulSetStrategy
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