-
Notifications
You must be signed in to change notification settings - Fork 0
/
replication_controller_spec.cr
41 lines (34 loc) · 2.99 KB
/
replication_controller_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ReplicationControllerSpec is the specification of a replication controller.
@[::K8S::Properties(
min_ready_seconds: {type: Int32, nilable: true, key: "minReadySeconds", getter: false, setter: false},
replicas: {type: Int32, nilable: true, key: "replicas", getter: false, setter: false},
selector: {type: Hash(String, String), nilable: true, key: "selector", getter: false, setter: false},
template: {type: Api::Core::V1::PodTemplateSpec, nilable: true, key: "template", getter: false, setter: false},
)]
class Api::Core::V1::ReplicationControllerSpec
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
# Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: [https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller](https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller)
@[::JSON::Field(key: "replicas", emit_null: false)]
@[::YAML::Field(key: "replicas", emit_null: false)]
property replicas : Int32 | Nil
# Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: [https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors)
@[::JSON::Field(key: "selector", emit_null: false)]
@[::YAML::Field(key: "selector", emit_null: false)]
property selector : Hash(String, String) | Nil
# Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: [https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template](https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template)
@[::JSON::Field(key: "template", emit_null: false)]
@[::YAML::Field(key: "template", emit_null: false)]
property template : Api::Core::V1::PodTemplateSpec | Nil
def initialize(*, @min_ready_seconds : Int32 | Nil = nil, @replicas : Int32 | Nil = nil, @selector : Hash(String, String) | Nil = nil, @template : Api::Core::V1::PodTemplateSpec | Nil = nil)
end
end
end