pub struct RuntimeComponentInitContainersLifecyclePreStop {
pub exec: Option<RuntimeComponentInitContainersLifecyclePreStopExec>,
pub http_get: Option<RuntimeComponentInitContainersLifecyclePreStopHttpGet>,
pub sleep: Option<RuntimeComponentInitContainersLifecyclePreStopSleep>,
pub tcp_socket: Option<RuntimeComponentInitContainersLifecyclePreStopTcpSocket>,
}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 Pod’s termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod’s termination grace period (unless delayed by finalizers). 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<RuntimeComponentInitContainersLifecyclePreStopExec>Exec specifies a command to execute in the container.
http_get: Option<RuntimeComponentInitContainersLifecyclePreStopHttpGet>HTTPGet specifies an HTTP GET request to perform.
sleep: Option<RuntimeComponentInitContainersLifecyclePreStopSleep>Sleep represents a duration that the container should sleep.
tcp_socket: Option<RuntimeComponentInitContainersLifecyclePreStopTcpSocket>Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.
Trait Implementations§
Source§impl Clone for RuntimeComponentInitContainersLifecyclePreStop
impl Clone for RuntimeComponentInitContainersLifecyclePreStop
Source§fn clone(&self) -> RuntimeComponentInitContainersLifecyclePreStop
fn clone(&self) -> RuntimeComponentInitContainersLifecyclePreStop
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RuntimeComponentInitContainersLifecyclePreStop
impl Default for RuntimeComponentInitContainersLifecyclePreStop
Source§fn default() -> RuntimeComponentInitContainersLifecyclePreStop
fn default() -> RuntimeComponentInitContainersLifecyclePreStop
Source§impl<'de> Deserialize<'de> for RuntimeComponentInitContainersLifecyclePreStop
impl<'de> Deserialize<'de> for RuntimeComponentInitContainersLifecyclePreStop
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 RuntimeComponentInitContainersLifecyclePreStop
impl PartialEq for RuntimeComponentInitContainersLifecyclePreStop
Source§fn eq(&self, other: &RuntimeComponentInitContainersLifecyclePreStop) -> bool
fn eq(&self, other: &RuntimeComponentInitContainersLifecyclePreStop) -> bool
self and other values to be equal, and is used by ==.