Files

22 lines
765 B
Go

// +kubebuilder:object:generate=true
package v1beta1
type IngressSpec struct {
// +optional
Annotations map[string]string `json:"annotations"`
Path string `json:"path"`
Host string `json:"host"`
// +optional
TLS *IngressTLS `json:"tls"`
}
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"`
}