-
Notifications
You must be signed in to change notification settings - Fork 542
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
bug(fe): route created with service can not use the service upstream #1278
Comments
Creating Route needs to be updated according to [1], please take a look. [1] #1213 |
ping |
Got it, so IMHO, when create a route with a service, we need to :
what do you think? @juzhiyuan @LiteSun @idbeta |
Agree, but the option of |
Hi @liuxiran, specify different upstream is a historical legacy 🤔 not sure if we should remove this part in the future, only allow users to bind an upstream or a service. |
Thanks for your reply @juzhiyuan @idbeta . so when create a route with a service, we only need to auto fill in the upstream with the service upstream info, and at the same time, user could not specify it, am I right? |
Once we auto fill upstream info from service, a new upstream object would be bound to that route unexpectedly IMO |
you mean we should omit the
|
When I tried to create a route with service_id, this result seems not meet my expectation, so I wonder if it is intentional or it still needs to improve? |
Service or Upstream is an entity for Route, because the older dashboard supports custom upstream, and the upstream data is stored but not linked or referenced in etcd, once we omit upstream after selecting service, some unexpected issues would happen. But we could support after service is selected, upstream turns to be optional 🤔 Does it make sense to your concern? Let me know if not 😄 |
Bug report
Describe the bug
Refer to the description, when create a route with service id, this route will have the same upstream and plugin configuration.
When I try to create a route with service in dashboard, although I have selected a service in the first step, I still have to define a new
upstream
because of the required validation in the second step, and at the same time, the newupstream
definition will cover the service's upstream.How to Reproduce
Next
buttonExpected behavior
I would be better to use service data to auto fill in the
upstream
form in the second step.System information
The text was updated successfully, but these errors were encountered: