aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrui hu <hu.rui2@zte.com.cn>2017-09-15 08:08:59 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-15 08:08:59 +0000
commitb6ccf74fe168b2add28c83c79d07c9758239440d (patch)
treebd98197694a9be6bd68f3483af209fd117fd8a2c
parent795f3ef24df3ac2533608dfa47a5b3927a736649 (diff)
parent5aaaa7badb3f3c29bad8b5a49e2b1f185e821771 (diff)
Merge "Add path property support"
-rw-r--r--src/kube2msb/msb_client.go1
-rw-r--r--src/kube2msb/types.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/kube2msb/msb_client.go b/src/kube2msb/msb_client.go
index 2c1b402..74e2319 100644
--- a/src/kube2msb/msb_client.go
+++ b/src/kube2msb/msb_client.go
@@ -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}},
}
}
diff --git a/src/kube2msb/types.go b/src/kube2msb/types.go
index 095400b..d496b1c 100644
--- a/src/kube2msb/types.go
+++ b/src/kube2msb/types.go
@@ -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"`
}