kotalco / core-api

Kotal core API
0 stars 0 forks source link

feat/append-corssover-middleware-dynamically-to-ingress-routes-accross-namespaces #276

Closed mohamed-abdelrhman closed 1 year ago

mohamed-abdelrhman commented 1 year ago

Issue Description

Background

Currently, when creating a new endpoint (ingress-route) in the cloud-aoi, users are required to manually append the crossover middleware.

Requirements

whenever the user creates new middleware the system should check if we have crossover middleware in the endpoint-namespace and use it if exists or creates new one if doesn't.

Proposed Solution

similar to the stripe-prefix middleware that we use to stripe the middleware endpoint id or the basic-auth middleware we use for authentication , we should also dynamically create and append the crossover middleware to the newly created ingress-route