#[non_exhaustive]pub struct CanaryDeployment {
pub percentages: Vec<i32>,
pub verify: bool,
pub predeploy: Option<Predeploy>,
pub postdeploy: Option<Postdeploy>,
/* private fields */
}
Expand description
CanaryDeployment represents the canary deployment configuration
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.percentages: Vec<i32>
Required. The percentage based deployments that will occur as a part of a
Rollout
. List is expected in ascending order and each integer n is
0 <= n < 100.
If the GatewayServiceMesh is configured for Kubernetes, then the range for
n is 0 <= n <= 100.
verify: bool
Optional. Whether to run verify tests after each percentage deployment via
skaffold verify
.
predeploy: Option<Predeploy>
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
postdeploy: Option<Postdeploy>
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
Implementations§
Source§impl CanaryDeployment
impl CanaryDeployment
pub fn new() -> Self
Sourcepub fn set_percentages<T, V>(self, v: T) -> Self
pub fn set_percentages<T, V>(self, v: T) -> Self
Sets the value of percentages.
Sourcepub fn set_verify<T: Into<bool>>(self, v: T) -> Self
pub fn set_verify<T: Into<bool>>(self, v: T) -> Self
Sets the value of verify.
Sourcepub fn set_predeploy<T>(self, v: T) -> Self
pub fn set_predeploy<T>(self, v: T) -> Self
Sets the value of predeploy.
Sourcepub fn set_or_clear_predeploy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_predeploy<T>(self, v: Option<T>) -> Self
Sets or clears the value of predeploy.
Sourcepub fn set_postdeploy<T>(self, v: T) -> Selfwhere
T: Into<Postdeploy>,
pub fn set_postdeploy<T>(self, v: T) -> Selfwhere
T: Into<Postdeploy>,
Sets the value of postdeploy.
Sourcepub fn set_or_clear_postdeploy<T>(self, v: Option<T>) -> Selfwhere
T: Into<Postdeploy>,
pub fn set_or_clear_postdeploy<T>(self, v: Option<T>) -> Selfwhere
T: Into<Postdeploy>,
Sets or clears the value of postdeploy.
Trait Implementations§
Source§impl Clone for CanaryDeployment
impl Clone for CanaryDeployment
Source§fn clone(&self) -> CanaryDeployment
fn clone(&self) -> CanaryDeployment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more