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.
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.
restart_policy
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.
Macros
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion