pub struct PoolerTemplateSpecInitContainersLifecyclePreStop {
pub exec: Option<PoolerTemplateSpecInitContainersLifecyclePreStopExec>,
pub http_get: Option<PoolerTemplateSpecInitContainersLifecyclePreStopHttpGet>,
pub tcp_socket: Option<PoolerTemplateSpecInitContainersLifecyclePreStopTcpSocket>,
}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<PoolerTemplateSpecInitContainersLifecyclePreStopExec>Exec specifies the action to take.
http_get: Option<PoolerTemplateSpecInitContainersLifecyclePreStopHttpGet>HTTPGet specifies the http request to perform.
tcp_socket: Option<PoolerTemplateSpecInitContainersLifecyclePreStopTcpSocket>Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
Trait Implementations§
source§impl Clone for PoolerTemplateSpecInitContainersLifecyclePreStop
impl Clone for PoolerTemplateSpecInitContainersLifecyclePreStop
source§fn clone(&self) -> PoolerTemplateSpecInitContainersLifecyclePreStop
fn clone(&self) -> PoolerTemplateSpecInitContainersLifecyclePreStop
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PoolerTemplateSpecInitContainersLifecyclePreStop
impl Default for PoolerTemplateSpecInitContainersLifecyclePreStop
source§fn default() -> PoolerTemplateSpecInitContainersLifecyclePreStop
fn default() -> PoolerTemplateSpecInitContainersLifecyclePreStop
source§impl<'de> Deserialize<'de> for PoolerTemplateSpecInitContainersLifecyclePreStop
impl<'de> Deserialize<'de> for PoolerTemplateSpecInitContainersLifecyclePreStop
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 JsonSchema for PoolerTemplateSpecInitContainersLifecyclePreStop
impl JsonSchema for PoolerTemplateSpecInitContainersLifecyclePreStop
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more