-
Notifications
You must be signed in to change notification settings - Fork 0
/
stateful_set_update_strategy.cr
31 lines (26 loc) · 1.42 KB
/
stateful_set_update_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
30
31
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.
@[::K8S::Properties(
rolling_update: {type: Api::Apps::V1::RollingUpdateStatefulSetStrategy, nilable: true, key: "rollingUpdate", getter: false, setter: false},
type: {type: String, nilable: true, key: "type", getter: false, setter: false},
)]
class Api::Apps::V1::StatefulSetUpdateStrategy
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
@[::JSON::Field(key: "rollingUpdate", emit_null: false)]
@[::YAML::Field(key: "rollingUpdate", emit_null: false)]
property rolling_update : Api::Apps::V1::RollingUpdateStatefulSetStrategy | Nil
# Type indicates the type of the StatefulSetUpdateStrategy. 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::RollingUpdateStatefulSetStrategy | Nil = nil, @type : String | Nil = nil)
end
end
end