pub struct PhaseConfig {
pub percentage: Option<i32>,
pub phase_id: Option<String>,
pub postdeploy: Option<Postdeploy>,
pub predeploy: Option<Predeploy>,
pub profiles: Option<Vec<String>>,
pub verify: Option<bool>,
}
Expand description
PhaseConfig represents the configuration for a phase in the custom canary deployment.
This type is not used in any activity, and only used as part of another schema.
Fields§
§percentage: Option<i32>
Required. Percentage deployment for the phase.
phase_id: Option<String>
Required. The ID to assign to the Rollout
phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$
.
postdeploy: Option<Postdeploy>
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
predeploy: Option<Predeploy>
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
profiles: Option<Vec<String>>
Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the DeliveryPipeline
stage.
verify: Option<bool>
Whether to run verify tests after the deployment.
Trait Implementations§
Source§impl Clone for PhaseConfig
impl Clone for PhaseConfig
Source§fn clone(&self) -> PhaseConfig
fn clone(&self) -> PhaseConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PhaseConfig
impl Debug for PhaseConfig
Source§impl Default for PhaseConfig
impl Default for PhaseConfig
Source§fn default() -> PhaseConfig
fn default() -> PhaseConfig
Source§impl<'de> Deserialize<'de> for PhaseConfig
impl<'de> Deserialize<'de> for PhaseConfig
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 Serialize for PhaseConfig
impl Serialize for PhaseConfig
impl Part for PhaseConfig
Auto Trait Implementations§
impl Freeze for PhaseConfig
impl RefUnwindSafe for PhaseConfig
impl Send for PhaseConfig
impl Sync for PhaseConfig
impl Unpin for PhaseConfig
impl UnwindSafe for PhaseConfig
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