struct

Kubernetes::LifecycleHandler

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

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.

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

exec

Exec specifies a command to execute in the container.

Source
exec=(exec : ExecAction | Nil)

Exec specifies a command to execute in the container.

Source
http_get

HTTPGet specifies an HTTP GET request to perform.

Source
http_get=(http_get : HTTPGetAction | Nil)

HTTPGet specifies an HTTP GET request to perform.

Source
sleep

Sleep represents a duration that the container should sleep.

Source
sleep=(sleep : SleepAction | Nil)

Sleep represents a duration that the container should sleep.

Source
tcp_socket

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.

Source
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.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source