Documentation
¶
Index ¶
- Constants
- Variables
- func IsRouteAttachedToReconciledGateway[routeT gatewayapi.RouteT](cl client.Reader, log logr.Logger, ...) bool
- func IsRouteAttachedToReconciledGatewayPredicate[routeT gatewayapi.RouteT](cl client.Reader, logger logr.Logger, ...) predicate.Predicate
- type BackendTLSPolicyReconciler
- type GRPCRouteReconciler
- type GatewayClassReconciler
- func (r *GatewayClassReconciler) GatewayClassIsUnmanaged(obj client.Object) bool
- func (r *GatewayClassReconciler) Reconcile(ctx context.Context, gwc *gatewayapi.GatewayClass) (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") )
var GetControllerName = mgrconsts.GetControllerName
GetControllerName is an alias for mgrconsts.GetControllerName.
var SetControllerName = mgrconsts.SetControllerName
SetControllerName is an alias for mgrconsts.SetControllerName.
Functions ¶
func IsRouteAttachedToReconciledGateway ¶
func IsRouteAttachedToReconciledGateway[routeT gatewayapi.RouteT]( cl client.Reader, log logr.Logger, gatewayNN controllers.OptionalNamespacedName, obj client.Object, ) bool
func IsRouteAttachedToReconciledGatewayPredicate ¶
func IsRouteAttachedToReconciledGatewayPredicate[routeT gatewayapi.RouteT]( cl client.Reader, logger logr.Logger, gatewayNN controllers.OptionalNamespacedName, ) predicate.Predicate
Types ¶
type BackendTLSPolicyReconciler ¶
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 ¶
func (r *BackendTLSPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects.
func (*BackendTLSPolicyReconciler) SetupWithManager ¶
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, gwc *gatewayapi.GatewayClass) (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
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
// contains filtered or unexported fields
}
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) SetLogger ¶ added in v2.2.0
func (r *TLSRouteReconciler) SetLogger(l logr.Logger)
SetLogger sets the logger.
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
- conditions.go
- gateway_controller.go
- gateway_utils.go
- gatewayclass_controller.go
- grpcroute_controller.go
- handle_error.go
- httproute_controller.go
- httproute_index.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