struct Kubernetes::LifecycleHandler

Overview

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

Included Modules

Defined in:

generated/models/io_k8s_api_core_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def exec : ExecAction | Nil #

Exec specifies a command to execute in the container.


def exec=(exec : ExecAction | Nil) #

Exec specifies a command to execute in the container.


def http_get : HTTPGetAction | Nil #

HTTPGet specifies an HTTP GET request to perform.


def http_get=(http_get : HTTPGetAction | Nil) #

HTTPGet specifies an HTTP GET request to perform.


def sleep : SleepAction | Nil #

Sleep represents a duration that the container should sleep.


def sleep=(sleep : SleepAction | Nil) #

Sleep represents a duration that the container should sleep.


def tcp_socket : TCPSocketAction | Nil #

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.


def tcp_socket=(tcp_socket : TCPSocketAction | Nil) #

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.