-
Notifications
You must be signed in to change notification settings - Fork 1
/
IngressProps.go
39 lines (36 loc) · 1.79 KB
/
IngressProps.go
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
package cdk8splus29
import (
"github.com/cdk8s-team/cdk8s-core-go/cdk8s/v2"
)
// Properties for `Ingress`.
type IngressProps struct {
// Metadata that all persisted resources must have, which includes all objects users must create.
Metadata *cdk8s.ApiObjectMetadata `field:"optional" json:"metadata" yaml:"metadata"`
// Class Name for this ingress.
//
// This field is a reference to an IngressClass resource that contains
// additional Ingress configuration, including the name of the Ingress controller.
ClassName *string `field:"optional" json:"className" yaml:"className"`
// The default backend services requests that do not match any rule.
//
// Using this option or the `addDefaultBackend()` method is equivalent to
// adding a rule with both `path` and `host` undefined.
DefaultBackend IngressBackend `field:"optional" json:"defaultBackend" yaml:"defaultBackend"`
// Routing rules for this ingress.
//
// Each rule must define an `IngressBackend` that will receive the requests
// that match this rule. If both `host` and `path` are not specifiec, this
// backend will be used as the default backend of the ingress.
//
// You can also add rules later using `addRule()`, `addHostRule()`,
// `addDefaultBackend()` and `addHostDefaultBackend()`.
Rules *[]*IngressRule `field:"optional" json:"rules" yaml:"rules"`
// TLS settings for this ingress.
//
// Using this option tells the ingress controller to expose a TLS endpoint.
// 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.
Tls *[]*IngressTls `field:"optional" json:"tls" yaml:"tls"`
}