Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure reroutes at runtime #750

Closed
ChrisSwinchatt opened this issue Jan 15, 2019 · 1 comment
Closed

Configure reroutes at runtime #750

ChrisSwinchatt opened this issue Jan 15, 2019 · 1 comment
Labels
feature A new feature proposal Proposal for a new functionality in Ocelot

Comments

@ChrisSwinchatt
Copy link
Contributor

New Feature

It would be useful if we could generate reroutes configuration at runtime. It seems like it would be fairly simple to expose Ocelot's internal API. It's already possible to create reroutes, but there is no exposed way to pass them to Ocelot. Ocelot is able to update its configuration dynamically (currently as a hack it's possible for a gateway to generate a new configuration and POST it to itself, but this involves serializing the reroutes and POSTing them so that Ocelot can deserialize them again) but the means to do this using CLR objects is not exposed.

Motivation for New Feature

It would simplify using an API discovery system that isn't explicitly supported by Ocelot. We're currently generating our gateway configuration using a combination of the K8S discovery API and Swagger. It would be nice to have a way to automatically insert a new service into the reroutes without the services themselves having to be do anything new as they would with Consul (i.e. the gateway polls every few minutes for new services, rather than services notifying it via Consul).

@philproctor philproctor added feature A new feature proposal Proposal for a new functionality in Ocelot labels Jan 16, 2019
@raman-m
Copy link
Member

raman-m commented Jan 7, 2024

@raman-m raman-m closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature proposal Proposal for a new functionality in Ocelot
Projects
None yet
Development

No branches or pull requests

3 participants