tokers commented on issue #289:
URL:
https://github.com/apache/apisix-ingress-controller/issues/289#issuecomment-794897478
> Not familiar with this temporarily, just one point: how about using
`serviceWithWeight` instead of `weightedBackends`?
Just like @Junnplus , We can unify the `weightedBackends` and `backend`.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- name: rule1
match:
hosts:
- httpbin.com
paths:
- /ip
backend:
serviceName: httpbin
servicePort: 80
- name: rule2
match:
hosts:
- httpbin.com
paths:
- /status
backends:
- serviceName: httpbin
servicePort: 80
weight: 100
- serviceName: httpbin2
servicePort: 8080
weight: 50
```
But the `backend` is used as an object, we may use another field `backends`,
and telling people to use the `backends` field.In the future release, we may
deprecate the `backend` field and even delete it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]