-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtime_class_strategy_options.cr
29 lines (24 loc) · 1.56 KB
/
runtime_class_strategy_options.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
# RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.
@[::K8S::Properties(
allowed_runtime_class_names: {type: Array(String), nilable: false, key: "allowedRuntimeClassNames", getter: false, setter: false},
default_runtime_class_name: {type: String, nilable: true, key: "defaultRuntimeClassName", getter: false, setter: false},
)]
class Api::Policy::V1beta1::RuntimeClassStrategyOptions
include ::JSON::Serializable
include ::YAML::Serializable
# allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.
@[::JSON::Field(key: "allowedRuntimeClassNames", emit_null: true)]
@[::YAML::Field(key: "allowedRuntimeClassNames", emit_null: true)]
property allowed_runtime_class_names : Array(String)
# defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.
@[::JSON::Field(key: "defaultRuntimeClassName", emit_null: false)]
@[::YAML::Field(key: "defaultRuntimeClassName", emit_null: false)]
property default_runtime_class_name : String | Nil
def initialize(*, @allowed_runtime_class_names : Array, @default_runtime_class_name : String | Nil = nil)
end
end
end