pub struct LifecycleHook {
pub exec_new_pod: Option<ExecNewPodHook>,
pub failure_policy: String,
pub tag_images: Option<Vec<TagImageHook>>,
}
Expand description
LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time.
Fields§
§exec_new_pod: Option<ExecNewPodHook>
ExecNewPod specifies the options for a lifecycle hook backed by a pod.
failure_policy: String
FailurePolicy specifies what action to take if the hook fails.
tag_images: Option<Vec<TagImageHook>>
TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.
Trait Implementations§
Source§impl Clone for LifecycleHook
impl Clone for LifecycleHook
Source§fn clone(&self) -> LifecycleHook
fn clone(&self) -> LifecycleHook
Returns a duplicate 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 LifecycleHook
impl Debug for LifecycleHook
Source§impl Default for LifecycleHook
impl Default for LifecycleHook
Source§fn default() -> LifecycleHook
fn default() -> LifecycleHook
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LifecycleHook
impl<'de> Deserialize<'de> for LifecycleHook
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
Source§impl PartialEq for LifecycleHook
impl PartialEq for LifecycleHook
Source§impl Serialize for LifecycleHook
impl Serialize for LifecycleHook
impl StructuralPartialEq for LifecycleHook
Auto Trait Implementations§
impl Freeze for LifecycleHook
impl RefUnwindSafe for LifecycleHook
impl Send for LifecycleHook
impl Sync for LifecycleHook
impl Unpin for LifecycleHook
impl UnwindSafe for LifecycleHook
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
Mutably borrows from an owned value. Read more