struct Kubernetes::ContainerRestartRuleOnExitCodes

Overview

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

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

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

def values : Array(Int32) | Nil #

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


def values=(values : Array(Int32) | Nil) #

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