Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
4ed7323c
Commit
4ed7323c
authored
4 years ago
by
AndrewChubatiuk
Browse files
Options
Download
Email Patches
Plain Diff
fixed connect port label
parent
b7d1aee6
Branches unavailable
v1.4.3
v1.4.2
v1.4.1
v1.4.0
v1.4.0-rc.1
v1.4.0-beta.1
v1.3.8
v1.3.7
v1.3.6
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc.1
v1.3.0-beta.1
v1.2.15
v1.2.14
v1.2.13
v1.2.12
v1.2.11
v1.2.10
v1.2.9
v1.2.8
v1.2.7
v1.2.6
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc1
v1.2.0-beta1
v1.1.18
v1.1.17
v1.1.16
v1.1.15
v1.1.14
v1.1.13
v1.1.12
v1.1.11
v1.1.10
v1.1.9
v1.1.8
v1.1.7
v1.1.6
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.1.0-rc1
v1.1.0-beta1
v1.0.18
v1.0.17
v1.0.16
v1.0.15
v1.0.14
v1.0.13
v1.0.12
v1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
nightly
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
command/agent/consul/connect_test.go
+4
-4
command/agent/consul/connect_test.go
nomad/job_endpoint_hook_connect.go
+1
-1
nomad/job_endpoint_hook_connect.go
with
5 additions
and
5 deletions
+5
-5
command/agent/consul/connect_test.go
+
4
-
4
View file @
4ed7323c
...
...
@@ -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"
,
}}
)
...
...
This diff is collapsed.
Click to expand it.
nomad/job_endpoint_hook_connect.go
+
1
-
1
View file @
4ed7323c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help