Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
aca37830
Commit
aca37830
authored
Mar 08, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22720 from bprashanth/ing_e2e_masterip
Auto commit by PR queue bot
parents
fa21ef11
f6c8b9b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
util.go
test/e2e/util.go
+10
-3
No files found.
test/e2e/util.go
View file @
aca37830
...
@@ -3267,9 +3267,16 @@ func getNodePortURL(client *client.Client, ns, name string, svcPort int) (string
...
@@ -3267,9 +3267,16 @@ func getNodePortURL(client *client.Client, ns, name string, svcPort int) (string
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
err
return
""
,
err
}
}
// It should be OK to list unschedulable Node here.
// This list of nodes must not include the master, which is marked
nodes
,
err
:=
client
.
Nodes
()
.
List
(
api
.
ListOptions
{})
// unschedulable, since the master doesn't run kube-proxy. Without
if
err
!=
nil
{
// kube-proxy NodePorts won't work.
var
nodes
*
api
.
NodeList
if
wait
.
PollImmediate
(
poll
,
singleCallTimeout
,
func
()
(
bool
,
error
)
{
nodes
,
err
=
client
.
Nodes
()
.
List
(
api
.
ListOptions
{
FieldSelector
:
fields
.
Set
{
"spec.unschedulable"
:
"false"
,
}
.
AsSelector
()})
return
err
==
nil
,
nil
})
!=
nil
{
return
""
,
err
return
""
,
err
}
}
if
len
(
nodes
.
Items
)
==
0
{
if
len
(
nodes
.
Items
)
==
0
{
...
...
Write
Preview
Markdown
is supported
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