Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Rancher
Commits
544e9add
Commit
544e9add
authored
7 years ago
by
Alena Prokharchyk
Committed by
Darren Shepherd
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Consider worker only node when get address for endpoint
parent
5ce907e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/controllers/user/endpoints/endpoints.go
+1
-1
pkg/controllers/user/endpoints/endpoints.go
with
1 addition
and
1 deletion
+1
-1
pkg/controllers/user/endpoints/endpoints.go
+
1
-
1
View file @
544e9add
...
...
@@ -270,7 +270,7 @@ func getAllNodesPublicEndpointIP(machineLister managementv3.NodeLister, clusterN
return
""
,
err
}
for
_
,
machine
:=
range
machines
{
if
isMachineReady
(
machine
)
{
if
machine
.
Spec
.
Worker
&&
isMachineReady
(
machine
)
{
nodePublicIP
:=
net
.
ParseIP
(
nodehelper
.
GetEndpointNodeIP
(
machine
))
if
nodePublicIP
.
String
()
!=
""
{
addresses
=
append
(
addresses
,
nodePublicIP
)
...
...
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