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