pub struct ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop {
pub exec: Option<ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStopExec>,
pub http_get: Option<ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGet>,
pub tcp_socket: Option<ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket>,
}Expand description
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod’s termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod’s termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
Fields§
§exec: Option<ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStopExec>One and only one of the following should be specified. Exec specifies the action to take.
http_get: Option<ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGet>HTTPGet specifies the http request to perform.
tcp_socket: Option<ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket>TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook
Trait Implementations§
Source§impl Clone for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
impl Clone for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
Source§fn clone(
&self,
) -> ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
fn clone( &self, ) -> ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
impl Default for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
Source§fn default() -> ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
fn default() -> ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
Source§impl<'de> Deserialize<'de> for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
impl<'de> Deserialize<'de> for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
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 PartialEq for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
impl PartialEq for ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop
Source§fn eq(
&self,
other: &ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop,
) -> bool
fn eq( &self, other: &ConsoleConsoleDeploymentSpecTemplateSpecInitContainersLifecyclePreStop, ) -> bool
self and other values to be equal, and is used by ==.