-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment_status.cr
65 lines (54 loc) · 3.81 KB
/
deployment_status.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# DeploymentStatus is the most recently observed status of the Deployment.
@[::K8S::Properties(
available_replicas: {type: Int32, nilable: true, key: "availableReplicas", getter: false, setter: false},
collision_count: {type: Int32, nilable: true, key: "collisionCount", getter: false, setter: false},
conditions: {type: Array(Api::Apps::V1::DeploymentCondition), nilable: true, key: "conditions", getter: false, setter: false},
observed_generation: {type: Int32, nilable: true, key: "observedGeneration", getter: false, setter: false},
ready_replicas: {type: Int32, nilable: true, key: "readyReplicas", getter: false, setter: false},
replicas: {type: Int32, nilable: true, key: "replicas", getter: false, setter: false},
unavailable_replicas: {type: Int32, nilable: true, key: "unavailableReplicas", getter: false, setter: false},
updated_replicas: {type: Int32, nilable: true, key: "updatedReplicas", getter: false, setter: false},
)]
class Api::Apps::V1::DeploymentStatus
include ::JSON::Serializable
include ::YAML::Serializable
# Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
@[::JSON::Field(key: "availableReplicas", emit_null: false)]
@[::YAML::Field(key: "availableReplicas", emit_null: false)]
property available_replicas : Int32 | Nil
# Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.
@[::JSON::Field(key: "collisionCount", emit_null: false)]
@[::YAML::Field(key: "collisionCount", emit_null: false)]
property collision_count : Int32 | Nil
# Represents the latest available observations of a deployment's current state.
@[::JSON::Field(key: "conditions", emit_null: false)]
@[::YAML::Field(key: "conditions", emit_null: false)]
property conditions : Array(Api::Apps::V1::DeploymentCondition) | Nil
# The generation observed by the deployment controller.
@[::JSON::Field(key: "observedGeneration", emit_null: false)]
@[::YAML::Field(key: "observedGeneration", emit_null: false)]
property observed_generation : Int32 | Nil
# Total number of ready pods targeted by this deployment.
@[::JSON::Field(key: "readyReplicas", emit_null: false)]
@[::YAML::Field(key: "readyReplicas", emit_null: false)]
property ready_replicas : Int32 | Nil
# Total number of non-terminated pods targeted by this deployment (their labels match the selector).
@[::JSON::Field(key: "replicas", emit_null: false)]
@[::YAML::Field(key: "replicas", emit_null: false)]
property replicas : Int32 | Nil
# Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
@[::JSON::Field(key: "unavailableReplicas", emit_null: false)]
@[::YAML::Field(key: "unavailableReplicas", emit_null: false)]
property unavailable_replicas : Int32 | Nil
# Total number of non-terminated pods targeted by this deployment that have the desired template spec.
@[::JSON::Field(key: "updatedReplicas", emit_null: false)]
@[::YAML::Field(key: "updatedReplicas", emit_null: false)]
property updated_replicas : Int32 | Nil
def initialize(*, @available_replicas : Int32 | Nil = nil, @collision_count : Int32 | Nil = nil, @conditions : Array | Nil = nil, @observed_generation : Int32 | Nil = nil, @ready_replicas : Int32 | Nil = nil, @replicas : Int32 | Nil = nil, @unavailable_replicas : Int32 | Nil = nil, @updated_replicas : Int32 | Nil = nil)
end
end
end