-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment_strategy.cr
29 lines (24 loc) · 1.16 KB
/
deployment_strategy.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
# DeploymentStrategy describes how to replace existing pods with new ones.
@[::K8S::Properties(
rolling_update: {type: Api::Apps::V1::RollingUpdateDeployment, nilable: true, key: "rollingUpdate", getter: false, setter: false},
type: {type: String, nilable: true, key: "type", getter: false, setter: false},
)]
class Api::Apps::V1::DeploymentStrategy
include ::JSON::Serializable
include ::YAML::Serializable
# Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.
@[::JSON::Field(key: "rollingUpdate", emit_null: false)]
@[::YAML::Field(key: "rollingUpdate", emit_null: false)]
property rolling_update : Api::Apps::V1::RollingUpdateDeployment | Nil
# Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
@[::JSON::Field(key: "type", emit_null: false)]
@[::YAML::Field(key: "type", emit_null: false)]
property type : String | Nil
def initialize(*, @rolling_update : Api::Apps::V1::RollingUpdateDeployment | Nil = nil, @type : String | Nil = nil)
end
end
end