-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment_spec.cr
65 lines (54 loc) · 4.09 KB
/
deployment_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
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
# DeploymentSpec is the specification of the desired behavior of the Deployment.
@[::K8S::Properties(
min_ready_seconds: {type: Int32, nilable: true, key: "minReadySeconds", getter: false, setter: false},
paused: {type: Bool, nilable: true, key: "paused", getter: false, setter: false},
progress_deadline_seconds: {type: Int32, nilable: true, key: "progressDeadlineSeconds", getter: false, setter: false},
replicas: {type: Int32, nilable: true, key: "replicas", getter: false, setter: false},
revision_history_limit: {type: Int32, nilable: true, key: "revisionHistoryLimit", getter: false, setter: false},
selector: {type: Apimachinery::Apis::Meta::V1::LabelSelector, nilable: false, key: "selector", getter: false, setter: false},
strategy: {type: Api::Apps::V1::DeploymentStrategy, nilable: true, key: "strategy", getter: false, setter: false},
template: {type: Api::Core::V1::PodTemplateSpec, nilable: false, key: "template", getter: false, setter: false},
)]
class Api::Apps::V1::DeploymentSpec
include ::JSON::Serializable
include ::YAML::Serializable
# Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
@[::JSON::Field(key: "minReadySeconds", emit_null: false)]
@[::YAML::Field(key: "minReadySeconds", emit_null: false)]
property min_ready_seconds : Int32 | Nil
# Indicates that the deployment is paused.
@[::JSON::Field(key: "paused", emit_null: false)]
@[::YAML::Field(key: "paused", emit_null: false)]
property paused : Bool | Nil
# The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.
@[::JSON::Field(key: "progressDeadlineSeconds", emit_null: false)]
@[::YAML::Field(key: "progressDeadlineSeconds", emit_null: false)]
property progress_deadline_seconds : Int32 | Nil
# Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
@[::JSON::Field(key: "replicas", emit_null: false)]
@[::YAML::Field(key: "replicas", emit_null: false)]
property replicas : Int32 | Nil
# The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.
@[::JSON::Field(key: "revisionHistoryLimit", emit_null: false)]
@[::YAML::Field(key: "revisionHistoryLimit", emit_null: false)]
property revision_history_limit : Int32 | Nil
# Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.
@[::JSON::Field(key: "selector", emit_null: true)]
@[::YAML::Field(key: "selector", emit_null: true)]
property selector : Apimachinery::Apis::Meta::V1::LabelSelector
# The deployment strategy to use to replace existing pods with new ones.
@[::JSON::Field(key: "strategy", emit_null: false)]
@[::YAML::Field(key: "strategy", emit_null: false)]
property strategy : Api::Apps::V1::DeploymentStrategy | Nil
# Template describes the pods that will be created.
@[::JSON::Field(key: "template", emit_null: true)]
@[::YAML::Field(key: "template", emit_null: true)]
property template : Api::Core::V1::PodTemplateSpec
def initialize(*, @selector : Apimachinery::Apis::Meta::V1::LabelSelector, @template : Api::Core::V1::PodTemplateSpec, @min_ready_seconds : Int32 | Nil = nil, @paused : Bool | Nil = nil, @progress_deadline_seconds : Int32 | Nil = nil, @replicas : Int32 | Nil = nil, @revision_history_limit : Int32 | Nil = nil, @strategy : Api::Apps::V1::DeploymentStrategy | Nil = nil)
end
end
end