-
Notifications
You must be signed in to change notification settings - Fork 932
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
RFC0027 CLI Support for Generic Per-Route Options [main] #3372
base: main
Are you sure you want to change the base?
RFC0027 CLI Support for Generic Per-Route Options [main] #3372
Conversation
I did some manual tests and found some unexpected behavior:
a) Using a valid value for
🔴 This does not set the option:
b) Using an invalid option:
🔴 This should be rejected with an error message.
|
The case 2 a) & b) is an expected behaviour, since specified options only apply to routes, which do not exist and are being created by the map-route command. We spoke about it and we could extend this info in the help and add a warning output for existing routes. It might be helpful to specify options for the non existent routes directly without making the second command call necessary (update-route). On the other hand, one can completely remove this option for the map-route command. |
After a discussion with @hoffmaen, we decided to keep the map-route options specification, but add an error message if the options are specified for an existing route. |
Another issue found during the review with @Dariquest :
will unexpectedly remove the |
CLI Support for Generic Per-Route Options
Introducing a new cli command 'update-route', which allows updates to route resources.
Extending the API of the Route to contain per route options and particularly the first one called "loadbalancing", containing a load balancing algorithm of a route.
Existing commands "create-route", "map-route", "routes", "route", "apps", "app" were also extended to accept and output the per-route options.
Detailed specification including that of for all the involved components is provided in the RFC
It is possible to provide options in the create-route and map-route commands.
Why Is This PR Valuable?
Allow users to manage per-route options via the CLI instead of having to talk to the API directly.
Applicable Issues
GitHub Issue
How Urgent Is The Change?
No urgency