gateway

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPProtocolType  = gatewayv1beta1.HTTPProtocolType
	HTTPSProtocolType = gatewayv1beta1.HTTPSProtocolType
	TLSProtocolType   = gatewayv1beta1.TLSProtocolType
	TCPProtocolType   = gatewayv1beta1.TCPProtocolType
	UDPProtocolType   = gatewayv1beta1.UDPProtocolType
)

Variables

View Source
var ControllerName gatewayv1beta1.GatewayController = "konghq.com/kic-gateway-controller"

ControllerName is the unique identifier for this controller and is used within GatewayClass resources to indicate that this controller should support connected Gateway resources.

View Source
var (
	ErrUnmanagedAnnotation = errors.New("invalid unmanaged annotation value")
)

Functions

This section is empty.

Types

type Gateway added in v2.6.0

type Gateway = gatewayv1beta1.Gateway

type GatewayAddress added in v2.6.0

type GatewayAddress = gatewayv1beta1.GatewayAddress

type GatewayClass added in v2.6.0

type GatewayClass = gatewayv1beta1.GatewayClass

type GatewayClassReconciler added in v2.3.0

type GatewayClassReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

GatewayClassReconciler reconciles a GatewayClass object.

func (*GatewayClassReconciler) GatewayClassIsUnmanaged added in v2.6.0

func (r *GatewayClassReconciler) GatewayClassIsUnmanaged(obj client.Object) bool

GatewayClassIsUnmanaged is a watch predicate which filters out reconciliation events for gateway objects which aren't annotated as unmanaged.

func (*GatewayClassReconciler) Reconcile added in v2.3.0

func (r *GatewayClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*GatewayClassReconciler) SetupWithManager added in v2.3.0

func (r *GatewayClassReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GatewayReconciler

type GatewayReconciler struct {
	client.Client

	Log             logr.Logger
	Scheme          *runtime.Scheme
	DataplaneClient *dataplane.KongClient

	PublishService  string
	WatchNamespaces []string
	// If EnableReferenceGrant is true, controller will watch ReferenceGrants
	// to invalidate or allow cross-namespace TLSConfigs in gateways.
	EnableReferenceGrant bool
	// contains filtered or unexported fields
}

GatewayReconciler reconciles a Gateway object.

func (*GatewayReconciler) Reconcile

func (r *GatewayReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*GatewayReconciler) SetupWithManager

func (r *GatewayReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Group added in v2.6.0

type Group = gatewayv1beta1.Group

type HTTPRoute added in v2.6.0

type HTTPRoute = gatewayv1beta1.HTTPRoute

type HTTPRouteReconciler

type HTTPRouteReconciler struct {
	client.Client

	Log             logr.Logger
	Scheme          *runtime.Scheme
	DataplaneClient *dataplane.KongClient
	// If EnableReferenceGrant is true, we will check for ReferenceGrant if backend in another
	// namespace is in backendRefs.
	// If it is false, referencing backend in different namespace will be rejected.
	EnableReferenceGrant bool
}

HTTPRouteReconciler reconciles an HTTPRoute object.

func (*HTTPRouteReconciler) Reconcile

func (r *HTTPRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*HTTPRouteReconciler) SetupWithManager

func (r *HTTPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Hostname added in v2.6.0

type Hostname = gatewayv1beta1.Hostname

type Kind added in v2.6.0

type Kind = gatewayv1beta1.Kind

type Listener added in v2.6.0

type Listener = gatewayv1beta1.Listener

type ListenerStatus added in v2.6.0

type ListenerStatus = gatewayv1beta1.ListenerStatus

type ListenerTracker added in v2.5.0

type ListenerTracker struct {
	// actual listeners
	Listeners map[SectionName]Listener

	// statuses
	Statuses map[SectionName]ListenerStatus
	// contains filtered or unexported fields
}

ListenerTracker holds Gateway Listeners and their statuses, and provides methods to update statuses upon reconciliation.

func NewListenerTracker added in v2.5.0

func NewListenerTracker() ListenerTracker

NewListenerTracker returns a ListenerTracker with empty maps.

type Namespace added in v2.6.0

type Namespace = gatewayv1beta1.Namespace

type ObjectName added in v2.6.0

type ObjectName = gatewayv1beta1.ObjectName

type ParentReference added in v2.6.0

type ParentReference = gatewayv1beta1.ParentReference

type PortNumber added in v2.6.0

type PortNumber = gatewayv1beta1.PortNumber

type ProtocolType added in v2.6.0

type ProtocolType = gatewayv1beta1.ProtocolType

type ReferenceGrantReconciler added in v2.6.0

type ReferenceGrantReconciler struct {
	client.Client
	Log             logr.Logger
	Scheme          *runtime.Scheme
	DataplaneClient *dataplane.KongClient

	PublishService  string
	WatchNamespaces []string
}

ReferenceGrantReconciler reconciles a ReferenceGrant object.

func (*ReferenceGrantReconciler) Reconcile added in v2.6.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ReferenceGrantReconciler) SetupWithManager added in v2.6.0

func (r *ReferenceGrantReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RouteParentStatus added in v2.6.0

type RouteParentStatus = gatewayv1beta1.RouteParentStatus

type SectionName added in v2.6.0

type SectionName = gatewayv1beta1.SectionName

type TCPRouteReconciler added in v2.4.0

type TCPRouteReconciler struct {
	client.Client

	Log             logr.Logger
	Scheme          *runtime.Scheme
	DataplaneClient *dataplane.KongClient
}

TCPRouteReconciler reconciles an TCPRoute object.

func (*TCPRouteReconciler) Reconcile added in v2.4.0

func (r *TCPRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*TCPRouteReconciler) SetupWithManager added in v2.4.0

func (r *TCPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TLSRouteReconciler added in v2.4.0

type TLSRouteReconciler struct {
	client.Client

	Log             logr.Logger
	Scheme          *runtime.Scheme
	DataplaneClient *dataplane.KongClient
}

TLSRouteReconciler reconciles an TLSRoute object.

func (*TLSRouteReconciler) Reconcile added in v2.4.0

func (r *TLSRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*TLSRouteReconciler) SetupWithManager added in v2.4.0

func (r *TLSRouteReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type UDPRouteReconciler added in v2.3.0

type UDPRouteReconciler struct {
	client.Client

	Log             logr.Logger
	Scheme          *runtime.Scheme
	DataplaneClient *dataplane.KongClient
}

UDPRouteReconciler reconciles an UDPRoute object.

func (*UDPRouteReconciler) Reconcile added in v2.3.0

func (r *UDPRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*UDPRouteReconciler) SetupWithManager added in v2.3.0

func (r *UDPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL