-
Notifications
You must be signed in to change notification settings - Fork 27
Milestone
Description
Problem Statement
In #2262 the HTTPRoute BackendRefs are converted to KongTarget
s pointing to Kubernetes Services.
This issues explodes the Kubernetes Services in Endpoints and the KongTarget
s should point to actual Endpoints.
The weight assigned to each resulting KongTarget
endpoint should be computed taking into account the weight assigned to the Service
in the BackendRefs section of the HTTPRoute
and the number of Endpoint
s belonging to the Service
.
Configure EndpointSlice
in Konnect Hybrid Gateway
s. To achieve this high-level result, the following set of tasks needs to be addressed:
- Conversion: Create a new
EndpointSliceConverter
struct that implements theAPIConverter
interface and converts oneEndpointSlice
into the following set of resources:KongUpstream
s- One
KongTarget
per raw endpoint
- Controller: Create a new instance of the
HybridGatewayReconciler
that reconcilesEndpointSlice
s and uses the converter defined above - Watches: Define the set of
Watches
andOwns
for the controller above, in order to be sure that all the needed APIs are properly used to trigger new reconciliation events - RBACs: Ensure the Controller has the set of RBACs needed to perform the CRUD operations on the underlying APIs.
- Status update: Ensure the status of the
HTTPRoute
s is enriched with the proper set of conditions related to theKongUpstream
andKongTarget
CRs.
Acceptance Criteria
- All the points described in the problem statement are properly implemented