pub struct RuntimeComponentSidecarContainersLifecyclePreStop {
pub exec: Option<RuntimeComponentSidecarContainersLifecyclePreStopExec>,
pub http_get: Option<RuntimeComponentSidecarContainersLifecyclePreStopHttpGet>,
pub sleep: Option<RuntimeComponentSidecarContainersLifecyclePreStopSleep>,
pub tcp_socket: Option<RuntimeComponentSidecarContainersLifecyclePreStopTcpSocket>,
}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<RuntimeComponentSidecarContainersLifecyclePreStopExec>Exec specifies a command to execute in the container.
http_get: Option<RuntimeComponentSidecarContainersLifecyclePreStopHttpGet>HTTPGet specifies an HTTP GET request to perform.
sleep: Option<RuntimeComponentSidecarContainersLifecyclePreStopSleep>Sleep represents a duration that the container should sleep.
tcp_socket: Option<RuntimeComponentSidecarContainersLifecyclePreStopTcpSocket>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 RuntimeComponentSidecarContainersLifecyclePreStop
impl Clone for RuntimeComponentSidecarContainersLifecyclePreStop
Source§fn clone(&self) -> RuntimeComponentSidecarContainersLifecyclePreStop
fn clone(&self) -> RuntimeComponentSidecarContainersLifecyclePreStop
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RuntimeComponentSidecarContainersLifecyclePreStop
impl Default for RuntimeComponentSidecarContainersLifecyclePreStop
Source§fn default() -> RuntimeComponentSidecarContainersLifecyclePreStop
fn default() -> RuntimeComponentSidecarContainersLifecyclePreStop
Source§impl<'de> Deserialize<'de> for RuntimeComponentSidecarContainersLifecyclePreStop
impl<'de> Deserialize<'de> for RuntimeComponentSidecarContainersLifecyclePreStop
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 RuntimeComponentSidecarContainersLifecyclePreStop
impl PartialEq for RuntimeComponentSidecarContainersLifecyclePreStop
Source§fn eq(&self, other: &RuntimeComponentSidecarContainersLifecyclePreStop) -> bool
fn eq(&self, other: &RuntimeComponentSidecarContainersLifecyclePreStop) -> bool
self and other values to be equal, and is used by ==.