-
Notifications
You must be signed in to change notification settings - Fork 0
/
resource_requirements.cr
29 lines (24 loc) · 1.59 KB
/
resource_requirements.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ResourceRequirements describes the compute resource requirements.
@[::K8S::Properties(
limits: {type: Hash(String, String), nilable: true, key: "limits", getter: false, setter: false},
requests: {type: Hash(String, String), nilable: true, key: "requests", getter: false, setter: false},
)]
class Api::Core::V1::ResourceRequirements
include ::JSON::Serializable
include ::YAML::Serializable
# Limits describes the maximum amount of compute resources allowed. More info: [https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/)
@[::JSON::Field(key: "limits", emit_null: false)]
@[::YAML::Field(key: "limits", emit_null: false)]
property limits : Hash(String, String) | Nil
# Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: [https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/)
@[::JSON::Field(key: "requests", emit_null: false)]
@[::YAML::Field(key: "requests", emit_null: false)]
property requests : Hash(String, String) | Nil
def initialize(*, @limits : Hash(String, String) | Nil = nil, @requests : Hash(String, String) | Nil = nil)
end
end
end