-
Notifications
You must be signed in to change notification settings - Fork 0
/
scale_status.cr
29 lines (24 loc) · 1.29 KB
/
scale_status.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
# ScaleStatus represents the current status of a scale subresource.
@[::K8S::Properties(
replicas: {type: Int32, nilable: false, key: "replicas", getter: false, setter: false},
selector: {type: String, nilable: true, key: "selector", getter: false, setter: false},
)]
class Api::Autoscaling::V1::ScaleStatus
include ::JSON::Serializable
include ::YAML::Serializable
# actual number of observed instances of the scaled object.
@[::JSON::Field(key: "replicas", emit_null: true)]
@[::YAML::Field(key: "replicas", emit_null: true)]
property replicas : Int32
# label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: [http://kubernetes.io/docs/user-guide/labels#label-selectors](http://kubernetes.io/docs/user-guide/labels#label-selectors)
@[::JSON::Field(key: "selector", emit_null: false)]
@[::YAML::Field(key: "selector", emit_null: false)]
property selector : String | Nil
def initialize(*, @replicas : Int32, @selector : String | Nil = nil)
end
end
end