Documentation
¶
Index ¶
Constants ¶
const ( // ControllerName is the unique identifier for this controller and is used // within GatewayClass resources to indicate that this controller should // support connected Gateway resources. ControllerName gatewayv1alpha2.GatewayController = "konghq.com/kic-gateway-controller" )
Variables ¶
var ( // ManagedGatewaysUnsupported is an error used whenever a failure occurs // due to a Gateway that is not properly configured for unmanaged mode. ManagedGatewaysUnsupported = fmt.Errorf("invalid gateway spec: managed gateways are not currently supported") //nolint:revive )
Functions ¶
This section is empty.
Types ¶
type GatewayClassReconciler ¶ added in v2.3.0
GatewayClassReconciler reconciles a GatewayClass object
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 // contains filtered or unexported fields }
GatewayReconciler reconciles a Gateway object
func (*GatewayReconciler) Reconcile ¶
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 HTTPRouteReconciler ¶
type HTTPRouteReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient *dataplane.KongClient StatusQueue *status.Queue }
HTTPRouteReconciler reconciles an HTTPRoute object
func (*HTTPRouteReconciler) Reconcile ¶
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 ListenerTracker ¶ added in v2.5.0
type ListenerTracker struct { // actual listeners Listeners map[gatewayv1alpha2.SectionName]gatewayv1alpha2.Listener // statuses Statuses map[gatewayv1alpha2.SectionName]gatewayv1alpha2.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 ReferencePolicyReconciler ¶ added in v2.4.0
type ReferencePolicyReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient *dataplane.KongClient PublishService string WatchNamespaces []string }
ReferencePolicyReconciler reconciles a ReferencePolicy object
func (*ReferencePolicyReconciler) Reconcile ¶ added in v2.4.0
func (r *ReferencePolicyReconciler) 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 (*ReferencePolicyReconciler) SetupWithManager ¶ added in v2.4.0
func (r *ReferencePolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TCPRouteReconciler ¶ added in v2.4.0
type TCPRouteReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient *dataplane.KongClient StatusQueue *status.Queue }
TCPRouteReconciler reconciles an TCPRoute object
func (*TCPRouteReconciler) Reconcile ¶ added in v2.4.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 (*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 StatusQueue *status.Queue }
TLSRouteReconciler reconciles an TLSRoute object
func (*TLSRouteReconciler) Reconcile ¶ added in v2.4.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 (*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 StatusQueue *status.Queue }
UDPRouteReconciler reconciles an UDPRoute object
func (*UDPRouteReconciler) Reconcile ¶ added in v2.3.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 (*UDPRouteReconciler) SetupWithManager ¶ added in v2.3.0
func (r *UDPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.