struct
Kubernetes::LifecycleHandler
- Kubernetes::LifecycleHandler
- Struct
- Value
- Object
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
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#exec : ExecAction | Nil
Exec specifies a command to execute in the container.
-
#exec=(exec : ExecAction | Nil)
Exec specifies a command to execute in the container.
-
#http_get : HTTPGetAction | Nil
HTTPGet specifies an HTTP GET request to perform.
-
#http_get=(http_get : HTTPGetAction | Nil)
HTTPGet specifies an HTTP GET request to perform.
-
#sleep : SleepAction | Nil
Sleep represents a duration that the container should sleep.
-
#sleep=(sleep : SleepAction | Nil)
Sleep represents a duration that the container should sleep.
-
#tcp_socket : TCPSocketAction | Nil
Deprecated.
-
#tcp_socket=(tcp_socket : TCPSocketAction | Nil)
Deprecated.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
Sleep represents a duration that the container should sleep.
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.
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.