struct

Kubernetes::ContainerRestartRuleOnExitCodes

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

ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.

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

operator

Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values.

  • NotIn: the requirement is satisfied if the container exit code is not in the set of specified values.
Source
operator=(operator : String | Nil)

Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values.

  • NotIn: the requirement is satisfied if the container exit code is not in the set of specified values.
Source
values

Specifies the set of values to check for container exit codes. At most 255 elements are allowed.

Source
values=(values : Array(Int32) | Nil)

Specifies the set of values to check for container exit codes. At most 255 elements are allowed.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source