-
Notifications
You must be signed in to change notification settings - Fork 0
/
pod_disruption_budget_spec.cr
35 lines (29 loc) · 1.98 KB
/
pod_disruption_budget_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
@[::K8S::Properties(
max_unavailable: {type: Int32 | String, nilable: true, key: "maxUnavailable", getter: false, setter: false},
min_available: {type: Int32 | String, nilable: true, key: "minAvailable", getter: false, setter: false},
selector: {type: Apimachinery::Apis::Meta::V1::LabelSelector, nilable: true, key: "selector", getter: false, setter: false},
)]
class Api::Policy::V1beta1::PodDisruptionBudgetSpec
include ::JSON::Serializable
include ::YAML::Serializable
# An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable".
@[::JSON::Field(key: "maxUnavailable", emit_null: false)]
@[::YAML::Field(key: "maxUnavailable", emit_null: false)]
property max_unavailable : Int32 | String | Nil
# An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%".
@[::JSON::Field(key: "minAvailable", emit_null: false)]
@[::YAML::Field(key: "minAvailable", emit_null: false)]
property min_available : Int32 | String | Nil
# Label query over pods whose evictions are managed by the disruption budget.
@[::JSON::Field(key: "selector", emit_null: false)]
@[::YAML::Field(key: "selector", emit_null: false)]
property selector : Apimachinery::Apis::Meta::V1::LabelSelector | Nil
def initialize(*, @max_unavailable : Int32 | String | Nil = nil, @min_available : Int32 | String | Nil = nil, @selector : Apimachinery::Apis::Meta::V1::LabelSelector | Nil = nil)
end
end
end