slime-io / slime

An intelligent ServiceMesh manager based on Istio
https://slime-io.github.io/
Other
424 stars 78 forks source link

plugin:support vhost name without port #383

Closed MouceL closed 1 year ago

MouceL commented 1 year ago

之前的实现中,必须在envoyplugin指定vhost name的全部信息(包括端口)

before:

spec:
  host:
  - 163.com:80

该pr主要内容:当patch到 outbound 或 gateway时,如果vhostname 没有端口信息,那么就补上一个 ':*'

after:

spec:
  host:
  - 163.com

result:

  - applyTo: VIRTUAL_HOST
    match:
      context: SIDECAR_OUTBOUND
      routeConfiguration:
        vhost:
          name: 163.com:*
    patch:

istiod 要做适当适配, 才能支持这个特性

不影响之前使用