mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
25 lines
728 B
Go
25 lines
728 B
Go
package v1beta3
|
|
|
|
import (
|
|
networkingv1 "k8s.io/api/networking/v1"
|
|
)
|
|
|
|
type IngressTLS struct {
|
|
// SecretName is the name of the secret used to terminate TLS traffic on
|
|
// port 443. Field is left optional to allow TLS routing based on SNI
|
|
// hostname alone. If the SNI host in a listener conflicts with the "Host"
|
|
// header field used by an IngressRule, the SNI host is used for termination
|
|
// and value of the Host header is used for routing.
|
|
// +optional
|
|
SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"`
|
|
}
|
|
|
|
func (t *IngressTLS) AsK8SIngressTLSSlice() []networkingv1.IngressTLS {
|
|
if t == nil {
|
|
return nil
|
|
}
|
|
return []networkingv1.IngressTLS{{
|
|
//SecretName: t.SecretName,
|
|
}}
|
|
}
|