struct

Kubernetes::ContainerResizePolicy

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

ContainerResizePolicy represents resource resize policy for the container.

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

resource_name

Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.

Source
resource_name=(resource_name : String | Nil)

Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.

Source
restart_policy

Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.

Source
restart_policy=(restart_policy : String | Nil)

Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source