Documentation
¶
Overview ¶
Package v1beta1 is the v1beta1 version of the configuration.konghq.com API. +groupName=configuration.konghq.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder is a schemeBuilder with all CRDs SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme points to SchemeBuilder's AddToScheme AddToScheme = SchemeBuilder.AddToScheme // SchemeGroupVersion is API Group and Version of // Kong Ingress Controller's API. SchemeGroupVersion = schema.GroupVersion{Group: "configuration.konghq.com", Version: "v1beta1"} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type IngressBackend ¶
type IngressBackend struct {
// Specifies the name of the referenced service.
ServiceName string `json:"serviceName"`
// Specifies the port of the referenced service.
ServicePort int `json:"servicePort"`
}
IngressBackend describes all endpoints for a given service and port.
func (*IngressBackend) DeepCopy ¶
func (in *IngressBackend) DeepCopy() *IngressBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend.
func (*IngressBackend) DeepCopyInto ¶
func (in *IngressBackend) DeepCopyInto(out *IngressBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRule ¶
type IngressRule struct {
// Host is the fully qualified domain name of a network host, as defined
// by RFC 3986.
// If a Host is specified, the protocol must be TLS over TCP.
// A plain-text TCP request cannot be routed based on Host. It can only
// be routed based on Port.
// +optional
Host string `json:"host,omitempty"`
// Port is the port on which to accept TCP or TLS over TCP sessions and
// route. It is a required field. If a Host is not specified, the requested
// are routed based only on Port.
Port int `json:"port,omitempty"`
// Backend defines the referenced service endpoint to which the traffic
// will be forwarded to.
Backend IngressBackend `json:"backend"`
}
IngressRule represents a rule to apply against incoming requests. Matching is performed based on an (optional) SNI and port.
func (*IngressRule) DeepCopy ¶
func (in *IngressRule) DeepCopy() *IngressRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
func (*IngressRule) DeepCopyInto ¶
func (in *IngressRule) DeepCopyInto(out *IngressRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressSpec ¶
type IngressSpec struct {
// A list of rules used to configure the Ingress.
Rules []IngressRule `json:"rules,omitempty"`
// TLS configuration. This is similar to the `tls` section in the
// Ingress resource in networking.v1beta1 group.
// The mapping of SNIs to TLS cert-key pair defined here will be
// used for HTTP Ingress rules as well. Once can define the mapping in
// this resource or the original Ingress resource, both have the same
// effect.
// +optional
TLS []IngressTLS `json:"tls,omitempty"`
}
IngressSpec describes the TCPIngress the user wishes to exist.
func (*IngressSpec) DeepCopy ¶
func (in *IngressSpec) DeepCopy() *IngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
func (*IngressSpec) DeepCopyInto ¶
func (in *IngressSpec) DeepCopyInto(out *IngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressStatus ¶
type IngressStatus struct {
// LoadBalancer contains the current status of the load-balancer.
// +optional
LoadBalancer corev1.LoadBalancerStatus `json:"loadBalancer,omitempty"`
}
IngressStatus describe the current state of TLSIngress.
func (*IngressStatus) DeepCopy ¶
func (in *IngressStatus) DeepCopy() *IngressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
func (*IngressStatus) DeepCopyInto ¶
func (in *IngressStatus) DeepCopyInto(out *IngressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressTLS ¶
type IngressTLS struct {
// Hosts are a list of hosts included in the TLS certificate. The values in
// this list must match the name/s used in the tlsSecret. Defaults to the
// wildcard host setting for the loadbalancer controller fulfilling this
// Ingress, if left unspecified.
// +optional
Hosts []string `json:"hosts,omitempty"`
// SecretName is the name of the secret used to terminate SSL traffic.
// +optional
SecretName string `json:"secretName,omitempty"`
}
IngressTLS describes the transport layer security.
func (*IngressTLS) DeepCopy ¶
func (in *IngressTLS) DeepCopy() *IngressTLS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
func (*IngressTLS) DeepCopyInto ¶
func (in *IngressTLS) DeepCopyInto(out *IngressTLS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TCPIngress ¶
type TCPIngress struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec is the desired state of the TCPIngress.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
// +optional
Spec IngressSpec `json:"spec,omitempty"`
// Status is the current state of the Ingress.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
// +optional
Status IngressStatus `json:"status,omitempty"`
}
TCPIngress is very similar to (and heavily borrows from) Ingress resource in the networking.v1beta1 group but for TCP or L4 routing. TCPIngress is a top-level type. A client is created for it. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*TCPIngress) DeepCopy ¶
func (in *TCPIngress) DeepCopy() *TCPIngress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPIngress.
func (*TCPIngress) DeepCopyInto ¶
func (in *TCPIngress) DeepCopyInto(out *TCPIngress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TCPIngress) DeepCopyObject ¶
func (in *TCPIngress) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TCPIngressList ¶
type TCPIngressList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
// +optional
Items []TCPIngress `json:"items"`
}
TCPIngressList is a top-level list type. The client methods for lists are automatically created. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*TCPIngressList) DeepCopy ¶
func (in *TCPIngressList) DeepCopy() *TCPIngressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPIngressList.
func (*TCPIngressList) DeepCopyInto ¶
func (in *TCPIngressList) DeepCopyInto(out *TCPIngressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TCPIngressList) DeepCopyObject ¶
func (in *TCPIngressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.