struct
Kubernetes::ContainerResizePolicy
- Kubernetes::ContainerResizePolicy
- Struct
- Value
- Object
Overview
ContainerResizePolicy represents resource resize policy for the container.
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
-
#resource_name : String | Nil
Name of the resource to which this resource resize policy applies.
-
#resource_name=(resource_name : String | Nil)
Name of the resource to which this resource resize policy applies.
-
#restart_policy : String | Nil
Restart policy to apply when specified resource is resized.
-
#restart_policy=(restart_policy : String | Nil)
Restart policy to apply when specified resource is resized.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.