Add path property support 75/12675/1
authorHuabingZhao <zhao.huabing@zte.com.cn>
Fri, 15 Sep 2017 08:02:38 +0000 (08:02 +0000)
committerHuabingZhao <zhao.huabing@zte.com.cn>
Fri, 15 Sep 2017 08:03:03 +0000 (08:03 +0000)
Issue-Id: OOM-61
Change-Id: Ifde7c3987c41beb49b77556b20e6e2018d52e1aa
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
src/kube2msb/msb_client.go
src/kube2msb/types.go

index 2c1b402..74e2319 100644 (file)
@@ -124,6 +124,7 @@ func ServiceAnnotation2ServiceUnit(sa *ServiceAnnotation) *ServiceUnit {
                Protocol:    sa.Protocol,
                LBPolicy:    sa.LBPolicy,
                VisualRange: sa.VisualRange,
+               Path:        sa.Path,
                Instances:   []InstanceUnit{{ServiceIP: sa.IP, ServicePort: sa.Port}},
        }
 }
index 095400b..d496b1c 100644 (file)
@@ -133,4 +133,5 @@ type ServiceAnnotation struct {
        Protocol    string `json:"protocol,omitempty"`
        LBPolicy    string `json:"lb_policy,omitempty"`
        VisualRange string `json:"visualRange,omitempty"`
+       Path        string `json:"path,omitempty"`
 }