-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtime_class_spec.cr
25 lines (21 loc) · 1.5 KB
/
runtime_class_spec.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
@[::K8S::Properties(
runtime_handler: {type: String, nilable: false, key: "runtimeHandler", getter: false, setter: false},
)]
class Api::Node::V1alpha1::RuntimeClassSpec
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable.
@[::JSON::Field(key: "runtimeHandler", emit_null: true)]
@[::YAML::Field(key: "runtimeHandler", emit_null: true)]
property runtime_handler : String
def initialize(*, @runtime_handler : String)
end
end
end