-
Notifications
You must be signed in to change notification settings - Fork 24
/
ingress_types.go
36 lines (32 loc) · 1.42 KB
/
ingress_types.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
package v1alpha1
type (
// IngressType represents how a service should be exposed (ingress vs route).
// +kubebuilder:validation:Enum=ingress;route
IngressType string
)
const (
// IngressTypeNone specifies that no ingress or route entry should be created.
IngressTypeNone IngressType = ""
// IngressTypeIngress specifies that an ingress entry should be created.
IngressTypeIngress IngressType = "ingress"
// IngressTypeRoute specifies that a route entry should be created.
IngressTypeRoute IngressType = "route"
)
type (
// TLSRouteTerminationType is used to indicate which TLS settings should be used.
// +kubebuilder:validation:Enum=insecure;edge;passthrough;reencrypt
TLSRouteTerminationType string
)
const (
// TLSRouteTerminationTypeInsecure indicates that insecure connections are allowed.
TLSRouteTerminationTypeInsecure TLSRouteTerminationType = "insecure"
// TLSRouteTerminationTypeEdge indicates that encryption should be terminated
// at the edge router.
TLSRouteTerminationTypeEdge TLSRouteTerminationType = "edge"
// TLSRouteTerminationTypePassthrough indicates that the destination service is
// responsible for decrypting traffic.
TLSRouteTerminationTypePassthrough TLSRouteTerminationType = "passthrough"
// TLSRouteTerminationTypeReencrypt indicates that traffic will be decrypted on the edge
// and re-encrypt using a new certificate.
TLSRouteTerminationTypeReencrypt TLSRouteTerminationType = "reencrypt"
)