Support https service registration 83/26783/1 amsterdam
authorHuabingZhao <zhao.huabing@zte.com.cn>
Fri, 22 Dec 2017 08:35:57 +0000 (16:35 +0800)
committerHuabingZhao <zhao.huabing@zte.com.cn>
Fri, 22 Dec 2017 08:43:31 +0000 (16:43 +0800)
Issue-ID: OOM-539
Change-Id: Ifbb95750bd448c375bddf2433ac6ad0b5d642027
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
src/kube2msb/msb_client.go
src/kube2msb/types.go

index 74e2319..9e16d00 100644 (file)
@@ -125,6 +125,7 @@ func ServiceAnnotation2ServiceUnit(sa *ServiceAnnotation) *ServiceUnit {
                LBPolicy:    sa.LBPolicy,
                VisualRange: sa.VisualRange,
                Path:        sa.Path,
+               EnableSSL:   sa.EnableSSL,
                Instances:   []InstanceUnit{{ServiceIP: sa.IP, ServicePort: sa.Port}},
        }
 }
index d496b1c..1b73a1a 100644 (file)
@@ -134,4 +134,5 @@ type ServiceAnnotation struct {
        LBPolicy    string `json:"lb_policy,omitempty"`
        VisualRange string `json:"visualRange,omitempty"`
        Path        string `json:"path,omitempty"`
+       EnableSSL   bool   `json:"enable_ssl"`
 }