pub struct ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate {
pub max_surge: Option<IntOrString>,
pub max_unavailable: Option<IntOrString>,
}Expand description
rollingUpdate is the rolling update config params. Present only if type = RollingUpdate.
Fields§
§max_surge: Option<IntOrString>maxSurge is the maximum number of machines that can be scheduled above the desired number of machines. Value can be an absolute number (ex: 5) or a percentage of desired machines (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 1. Example: when this is set to 30%, the new MachineSet can be scaled up immediately when the rolling update starts, such that the total number of old and new machines do not exceed 130% of desired machines. Once old machines have been killed, new MachineSet can be scaled up further, ensuring that total number of machines running at any time during the update is at most 130% of desired machines.
maxUnavailable is the maximum number of machines that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired machines (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 0. Example: when this is set to 30%, the old MachineSet can be scaled down to 70% of desired machines immediately when the rolling update starts. Once new machines are ready, old MachineSet can be scaled down further, followed by scaling up the new MachineSet, ensuring that the total number of machines available at all times during the update is at least 70% of desired machines.
Trait Implementations§
Source§impl Clone for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Clone for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn clone(
&self,
) -> ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
fn clone( &self, ) -> ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Default for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn default() -> ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
fn default() -> ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§impl<'de> Deserialize<'de> for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl<'de> Deserialize<'de> for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
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>,
Source§impl JsonSchema for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl JsonSchema for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl PartialEq for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn eq(
&self,
other: &ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate,
) -> bool
fn eq( &self, other: &ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate, ) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Auto Trait Implementations§
impl Freeze for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl RefUnwindSafe for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Send for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Sync for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Unpin for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl UnsafeUnpin for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl UnwindSafe for ClusterTopologyWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more