Commit 4ed7323c authored by AndrewChubatiuk's avatar AndrewChubatiuk
Browse files

fixed connect port label

Showing with 5 additions and 5 deletions
+5 -5
......@@ -22,10 +22,10 @@ var (
},
}}
testConnectPorts = structs.AllocatedPorts{{
Label = "connect-proxy-redis"
Value = 3000,
To = 3000,
HostIP = "192.168.30.1",
Label: "connect-proxy-redis",
Value: 3000,
To: 3000,
HostIP: "192.168.30.1",
}}
)
......
......@@ -249,7 +249,7 @@ func groupConnectHook(job *structs.Job, g *structs.TaskGroup) error {
// create a port for the sidecar task's proxy port
portLabel := service.Connect.SidecarService.Port
if portLabel != "" {
if portLabel == "" {
portLabel = fmt.Sprintf("%s-%s", structs.ConnectProxyPrefix, service.Name)
}
injectPort(g, portLabel)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment