-
Notifications
You must be signed in to change notification settings - Fork 0
/
endpoint_conditions.cr
37 lines (31 loc) · 2.11 KB
/
endpoint_conditions.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
30
31
32
33
34
35
36
37
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# EndpointConditions represents the current condition of an endpoint.
@[::K8S::Properties(
ready: {type: Bool, nilable: true, key: "ready", getter: false, setter: false},
serving: {type: Bool, nilable: true, key: "serving", getter: false, setter: false},
terminating: {type: Bool, nilable: true, key: "terminating", getter: false, setter: false},
)]
class Api::Discovery::V1::EndpointConditions
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints.
@[::JSON::Field(key: "ready", emit_null: false)]
@[::YAML::Field(key: "ready", emit_null: false)]
property ready : Bool | Nil
# serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
@[::JSON::Field(key: "serving", emit_null: false)]
@[::YAML::Field(key: "serving", emit_null: false)]
property serving : Bool | Nil
# terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
@[::JSON::Field(key: "terminating", emit_null: false)]
@[::YAML::Field(key: "terminating", emit_null: false)]
property terminating : Bool | Nil
def initialize(*, @ready : Bool | Nil = nil, @serving : Bool | Nil = nil, @terminating : Bool | Nil = nil)
end
end
end