Documentation
¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API. +groupName=contour.heptio.com
Index ¶
Constants ¶
const ( // GroupName is the group name for the Contour API GroupName = "contour.heptio.com" // ResourceKind is the CRD Kind ResourceKind = "IngressRoute" // ResourcePlural is the CRD Kind pluralized ResourcePlural = "ingressroutes" )
Variables ¶
var ( // SchemeBuilder collects the scheme builder functions for the Contour API SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies the SchemeBuilder functions to a specified scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is the GroupVersion for the Contour API
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource gets an Contour GroupResource for a specified resource
Types ¶
type Delegate ¶
type Delegate struct { // Name of the IngressRoute Name string `json:"name"` // Namespace of the IngressRoute Namespace string `json:"namespace"` }
Delegate allows for passing delgating VHosts to other IngressRoutes
func (*Delegate) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Delegate.
func (*Delegate) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRoute ¶
type IngressRoute struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec IngressRouteSpec `json:"spec"` }
IngressRoute is an Ingress CRD specificiation
func (*IngressRoute) DeepCopy ¶
func (in *IngressRoute) DeepCopy() *IngressRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRoute.
func (*IngressRoute) DeepCopyInto ¶
func (in *IngressRoute) DeepCopyInto(out *IngressRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressRoute) DeepCopyObject ¶
func (in *IngressRoute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IngressRouteList ¶
type IngressRouteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IngressRoute `json:"items"` }
IngressRouteList is a list of IngressRoutes
func (*IngressRouteList) DeepCopy ¶
func (in *IngressRouteList) DeepCopy() *IngressRouteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRouteList.
func (*IngressRouteList) DeepCopyInto ¶
func (in *IngressRouteList) DeepCopyInto(out *IngressRouteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressRouteList) DeepCopyObject ¶
func (in *IngressRouteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IngressRouteSpec ¶
type IngressRouteSpec struct { // Virtualhost appears at most once. If it is present, the object is considered // to be a "root". VirtualHost `json:"virtualhost"` // Routes are the ingress routes Routes []Route `json:"routes"` }
IngressRouteSpec defines the spec of the CRD
func (*IngressRouteSpec) DeepCopy ¶
func (in *IngressRouteSpec) DeepCopy() *IngressRouteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRouteSpec.
func (*IngressRouteSpec) DeepCopyInto ¶
func (in *IngressRouteSpec) DeepCopyInto(out *IngressRouteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
type Route struct { // Match defines the prefix match Match string `json:"match"` // Service are the services to proxy traffic Services []Service `json:"services"` Delegate `json:"delegate"` }
Route contains the set of routes for a virtual host
func (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
type Service struct { // Name is the name of Kubernetes service to proxy traffic. // Names defined here will be used to look up corresponding endpoints which contain the ips to route. Name string `json:"name"` // Port (defined as Integer) to proxy traffic to since a service can have multiple defined Port int `json:"port"` // Weight defines percentage of traffic to balance traffic Weight *int `json:"weight"` }
Service defines an upstream to proxy traffic to
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLS ¶
type TLS struct { // required, the name of a secret in the current namespace SecretName string `json:"secretName"` }
TLS describes tls properties. The CNI names that will be matched on are described in fqdn and aliases, the tls.secretName secret must contain a matching certificate
func (*TLS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLS.
func (*TLS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualHost ¶
type VirtualHost struct { // The fully qualified domain name of the root of the ingress tree // all leaves of the DAG rooted at this object relate to the fqdn (and its aliases) Fqdn string `json:"fqdn"` // A set of aliases for the domain, these may be alternative fqdns which are considered // aliases of the primary fqdn Aliases []string `json:"aliases"` // If present describes tls properties. The CNI names that will be matched on // are described in fqdn and aliases, the tls.secretName secret must contain a // matching certificate TLS `json:"tls"` }
VirtualHost appears at most once. If it is present, the object is considered to be a "root".
func (*VirtualHost) DeepCopy ¶
func (in *VirtualHost) DeepCopy() *VirtualHost
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualHost.
func (*VirtualHost) DeepCopyInto ¶
func (in *VirtualHost) DeepCopyInto(out *VirtualHost)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.