From 40f65f8c3735d7ff6cf5467f151bb1999647e920 Mon Sep 17 00:00:00 2001 From: barnettZQG Date: Thu, 23 Apr 2020 17:47:33 +0800 Subject: [PATCH] service add service_port label --- worker/appm/conversion/gateway.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker/appm/conversion/gateway.go b/worker/appm/conversion/gateway.go index 950beb1cd..40f703864 100644 --- a/worker/appm/conversion/gateway.go +++ b/worker/appm/conversion/gateway.go @@ -21,6 +21,7 @@ package conversion import ( "fmt" "os" + "strconv" "strings" "github.com/Sirupsen/logrus" @@ -454,6 +455,7 @@ func (a *AppServiceBuild) createInnerService(port *model.TenantServicesPort) *co "service_type": "inner", "name": a.service.ServiceAlias + "Service", "port_protocol": port.Protocol, + "service_port": strconv.Itoa(port.ContainerPort), "version": a.service.DeployVersion, }) if a.service.Replicas <= 1 { @@ -491,6 +493,7 @@ func (a *AppServiceBuild) createOuterService(port *model.TenantServicesPort) *co "tenant_name": a.tenant.Name, "protocol": port.Protocol, "port_protocol": port.Protocol, + "service_port": strconv.Itoa(port.ContainerPort), "event_id": a.eventID, "version": a.service.DeployVersion, })