struct

Kubernetes::ContainerRestartRule

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

ContainerRestartRule describes how a container exit is handled.

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

action

Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is "Restart" to restart the container.

Source
action=(action : String | Nil)

Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is "Restart" to restart the container.

Source
exit_codes

Represents the exit codes to check on container exits.

Source
exit_codes=(exit_codes : ContainerRestartRuleOnExitCodes | Nil)

Represents the exit codes to check on container exits.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source