-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress_spec.cr
37 lines (31 loc) · 2.17 KB
/
ingress_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# IngressSpec describes the Ingress the user wishes to exist.
@[::K8S::Properties(
backend: {type: Api::Extensions::V1beta1::IngressBackend, nilable: true, key: "backend", getter: false, setter: false},
rules: {type: Array(Api::Extensions::V1beta1::IngressRule), nilable: true, key: "rules", getter: false, setter: false},
tls: {type: Array(Api::Extensions::V1beta1::IngressTLS), nilable: true, key: "tls", getter: false, setter: false},
)]
class Api::Extensions::V1beta1::IngressSpec
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.
@[::JSON::Field(key: "backend", emit_null: false)]
@[::YAML::Field(key: "backend", emit_null: false)]
property backend : Api::Extensions::V1beta1::IngressBackend | Nil
# A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
@[::JSON::Field(key: "rules", emit_null: false)]
@[::YAML::Field(key: "rules", emit_null: false)]
property rules : Array(Api::Extensions::V1beta1::IngressRule) | Nil
# TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.
@[::JSON::Field(key: "tls", emit_null: false)]
@[::YAML::Field(key: "tls", emit_null: false)]
property tls : Array(Api::Extensions::V1beta1::IngressTLS) | Nil
def initialize(*, @backend : Api::Extensions::V1beta1::IngressBackend | Nil = nil, @rules : Array(Api::Extensions::V1beta1::IngressRule) | Nil = nil, @tls : Array(Api::Extensions::V1beta1::IngressTLS) | Nil = nil)
end
end
end