Documentation ¶
Index ¶
- Constants
- Variables
- func GetControllerName() gatewayapi.GatewayController
- func IsRouteAttachedToReconciledGateway[routeT gatewayapi.RouteT](cl client.Client, log logr.Logger, ...) bool
- func IsRouteAttachedToReconciledGatewayPredicate[routeT gatewayapi.RouteT](cl client.Client, logger logr.Logger, ...) predicate.Predicate
- func SetControllerName(name gatewayapi.GatewayController)
- type BackendTLSPolicyReconciler
- type GRPCRouteReconciler
- type GatewayClassReconciler
- func (r *GatewayClassReconciler) GatewayClassIsUnmanaged(obj client.Object) bool
- func (r *GatewayClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GatewayClassReconciler) SetLogger(l logr.Logger)
- func (r *GatewayClassReconciler) SetupWithManager(mgr ctrl.Manager) error
- type GatewayReconciler
- type HTTPRouteReconciler
- type ReferenceGrantReconciler
- type TCPRouteReconciler
- type TLSRouteReconciler
- type UDPRouteReconciler
Constants ¶
const ( ConditionTypeProgrammed = "Programmed" ConditionReasonProgrammedUnknown gatewayapi.RouteConditionReason = "Unknown" ConditionReasonConfiguredInGateway gatewayapi.RouteConditionReason = "ConfiguredInGateway" ConditionReasonTranslationError gatewayapi.RouteConditionReason = "TranslationError" )
Variables ¶
var ( ErrNoMatchingListenerHostname = fmt.Errorf("no matching hostnames in listener") ErrNoSupportedGateway = fmt.Errorf("no supported gateway found for route") )
Functions ¶
func GetControllerName ¶
func GetControllerName() gatewayapi.GatewayController
func IsRouteAttachedToReconciledGateway ¶ added in v3.3.0
func IsRouteAttachedToReconciledGateway[routeT gatewayapi.RouteT]( cl client.Client, log logr.Logger, gatewayNN controllers.OptionalNamespacedName, obj client.Object, ) bool
func IsRouteAttachedToReconciledGatewayPredicate ¶ added in v3.4.0
func IsRouteAttachedToReconciledGatewayPredicate[routeT gatewayapi.RouteT]( cl client.Client, logger logr.Logger, gatewayNN controllers.OptionalNamespacedName, ) predicate.Predicate
func SetControllerName ¶
func SetControllerName(name gatewayapi.GatewayController)
Types ¶
type BackendTLSPolicyReconciler ¶ added in v3.4.0
type BackendTLSPolicyReconciler struct { client.Client Log logr.Logger DataplaneClient controllers.DataPlane CacheSyncTimeout time.Duration ReferenceIndexers ctrlref.CacheIndexers // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName }
BackendTLSPolicyReconciler reconciles a BackendTLSPolicy object.
func (*BackendTLSPolicyReconciler) Reconcile ¶ added in v3.4.0
func (r *BackendTLSPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects.
func (*BackendTLSPolicyReconciler) SetupWithManager ¶ added in v3.4.0
func (r *BackendTLSPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GRPCRouteReconciler ¶
type GRPCRouteReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient controllers.DataPlane StatusQueue *status.Queue // 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 CacheSyncTimeout time.Duration // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName }
GRPCRouteReconciler reconciles an GRPCRoute object.
func (*GRPCRouteReconciler) 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 (*GRPCRouteReconciler) SetupWithManager ¶
func (r *GRPCRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GatewayClassReconciler ¶
type GatewayClassReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme CacheSyncTimeout time.Duration }
GatewayClassReconciler reconciles a GatewayClass object.
func (*GatewayClassReconciler) GatewayClassIsUnmanaged ¶
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 ¶
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) SetLogger ¶
func (r *GatewayClassReconciler) SetLogger(l logr.Logger)
SetLogger sets the logger.
func (*GatewayClassReconciler) SetupWithManager ¶
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 controllers.DataPlane WatchNamespaces []string CacheSyncTimeout time.Duration ReferenceIndexers ctrlref.CacheIndexers PublishServiceRef k8stypes.NamespacedName PublishServiceUDPRef mo.Option[k8stypes.NamespacedName] // AddressOverrides are addresses to use in Gateway status instead of the PublishServiceRef addresses. AddressOverrides []string // AddressOverridesUDP are addresses to use in Gateway status instead of the PublishServiceUDPRef addresses. AddressOverridesUDP []string // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName // 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) SetLogger ¶
func (r *GatewayReconciler) SetLogger(l logr.Logger)
SetLogger sets the logger.
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 controllers.DataPlane CacheSyncTimeout time.Duration StatusQueue *status.Queue // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName // contains filtered or unexported fields }
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) SetLogger ¶
func (r *HTTPRouteReconciler) SetLogger(l logr.Logger)
SetLogger sets the logger.
func (*HTTPRouteReconciler) SetupWithManager ¶
func (r *HTTPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReferenceGrantReconciler ¶
type ReferenceGrantReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient controllers.DataPlane CacheSyncTimeout time.Duration }
ReferenceGrantReconciler reconciles a ReferenceGrant object.
func (*ReferenceGrantReconciler) Reconcile ¶
func (r *ReferenceGrantReconciler) 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 (*ReferenceGrantReconciler) SetupWithManager ¶
func (r *ReferenceGrantReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TCPRouteReconciler ¶
type TCPRouteReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient controllers.DataPlane CacheSyncTimeout time.Duration StatusQueue *status.Queue // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName }
TCPRouteReconciler reconciles an TCPRoute object.
func (*TCPRouteReconciler) 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 (*TCPRouteReconciler) SetupWithManager ¶
func (r *TCPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TLSRouteReconciler ¶
type TLSRouteReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient controllers.DataPlane CacheSyncTimeout time.Duration StatusQueue *status.Queue // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName }
TLSRouteReconciler reconciles an TLSRoute object.
func (*TLSRouteReconciler) 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 (*TLSRouteReconciler) SetupWithManager ¶
func (r *TLSRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type UDPRouteReconciler ¶
type UDPRouteReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme DataplaneClient controllers.DataPlane CacheSyncTimeout time.Duration StatusQueue *status.Queue // If GatewayNN is set, // only resources managed by the specified Gateway are reconciled. GatewayNN controllers.OptionalNamespacedName }
UDPRouteReconciler reconciles an UDPRoute object.
func (*UDPRouteReconciler) 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 (*UDPRouteReconciler) SetupWithManager ¶
func (r *UDPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files ¶
- backendtlspolicy_controller.go
- backendtlspolicy_utils.go
- gateway_controller.go
- gateway_utils.go
- gatewayclass_controller.go
- grpcroute_controller.go
- handle_error.go
- httproute_controller.go
- referencegrant_controller.go
- route_parent_status.go
- route_predicates.go
- route_utils.go
- tcproute_controller.go
- tlsroute_controller.go
- udproute_controller.go
- utils.go