ryan4yin opened a new issue #368:
URL: https://github.com/apache/apisix-ingress-controller/issues/368


   ### Issue description
   
   cannot set backend's weight to 0, ingress-controller will use 
`_defaultWeight` if `weight` is `0`.
   
   maybe we should use `-1` to express a `_defaultWeight`?
   
   related codes:
   - 
https://github.com/apache/apisix-ingress-controller/blob/master/pkg/kube/translation/apisix_route.go#L200
   - 
https://github.com/apache/apisix-ingress-controller/blob/master/pkg/kube/translation/plugin.go#L41
   
   
   ### Environment
   
   * your apisix-ingress-controller version (output of 
`apisix-ingress-controller version --long`);
   * your Kubernetes cluster version (output of `kubectl version`);
   * if you run apisix-ingress-controller in Bare-metal environment, also show 
your OS version (`uname -a`).
   
   ### Minimal test code / Steps to reproduce the issue
   
   1.
   2.
   3.
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   
   ### What's the expected result?
   


-- 
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]


Reply via email to