alibaba / virtual-environment

Route isolation with service sharing https://alibaba.github.io/virtual-environment/#/zh-cn/
MIT License
217 stars 39 forks source link

有gateway的情况下,vs中hosts只有域名,没有svc name #27

Closed shixiaoge closed 3 years ago

shixiaoge commented 3 years ago

svc 配置:

.....
metadata:
  annotations:
    kt-virtual-environment/gateways: xxx-a-gateway
    kt-virtual-environment/hosts: xxx.a.com
  name: xxx-a-svc
......

vs自动生成配置:

spec:
  gateways:
  - xxx-a-gateway
  hosts:
  - xxx.a.com 
  http:
  ..........

这里自动生成的vs规则,hosts中缺少 svc name,使用xxx-a-svc(svc name)调用时无法使用istio的流量策略

linfan commented 3 years ago

fix in v0.5.1