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
e750454c
Commit
e750454c
authored
Sep 08, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix allow for non-ready nodes in e2e framework
parent
d877967c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cacher.go
pkg/storage/cacher.go
+2
-1
util.go
test/e2e/framework/util.go
+2
-2
No files found.
pkg/storage/cacher.go
View file @
e750454c
...
@@ -650,7 +650,8 @@ func (c *cacheWatcher) add(event watchCacheEvent) {
...
@@ -650,7 +650,8 @@ func (c *cacheWatcher) add(event watchCacheEvent) {
c
.
forget
(
false
)
c
.
forget
(
false
)
c
.
stop
()
c
.
stop
()
}
}
glog
.
V
(
2
)
.
Infof
(
"cacheWatcher add function blocked processing for %v"
,
time
.
Since
(
startTime
))
glog
.
V
(
2
)
.
Infof
(
"cacheWatcher add function blocked processing of %v for %v"
,
reflect
.
TypeOf
(
event
.
Object
)
.
String
(),
time
.
Since
(
startTime
))
}
}
func
(
c
*
cacheWatcher
)
sendWatchCacheEvent
(
event
watchCacheEvent
)
{
func
(
c
*
cacheWatcher
)
sendWatchCacheEvent
(
event
watchCacheEvent
)
{
...
...
test/e2e/framework/util.go
View file @
e750454c
...
@@ -4201,7 +4201,7 @@ func allowedNotReadyReasons(nodes []*api.Node) bool {
...
@@ -4201,7 +4201,7 @@ func allowedNotReadyReasons(nodes []*api.Node) bool {
for
_
,
node
:=
range
nodes
{
for
_
,
node
:=
range
nodes
{
index
,
condition
:=
api
.
GetNodeCondition
(
&
node
.
Status
,
api
.
NodeReady
)
index
,
condition
:=
api
.
GetNodeCondition
(
&
node
.
Status
,
api
.
NodeReady
)
if
index
==
-
1
||
if
index
==
-
1
||
!
strings
.
Contains
(
condition
.
Reason
,
"could not locate kubenet required CNI plugins"
)
{
!
strings
.
Contains
(
condition
.
Message
,
"could not locate kubenet required CNI plugins"
)
{
return
false
return
false
}
}
}
}
...
@@ -4213,7 +4213,7 @@ func allowedNotReadyReasons(nodes []*api.Node) bool {
...
@@ -4213,7 +4213,7 @@ func allowedNotReadyReasons(nodes []*api.Node) bool {
// and figure out how to do it in a configurable way, as we can't expect all setups to run
// and figure out how to do it in a configurable way, as we can't expect all setups to run
// default test add-ons.
// default test add-ons.
func
AllNodesReady
(
c
*
client
.
Client
,
timeout
time
.
Duration
)
error
{
func
AllNodesReady
(
c
*
client
.
Client
,
timeout
time
.
Duration
)
error
{
Logf
(
"Waiting up to %v for all
nodes to be ready"
,
timeout
)
Logf
(
"Waiting up to %v for all
(but %d) nodes to be ready"
,
TestContext
.
AllowedNotReadyNodes
,
timeout
)
var
notReady
[]
*
api
.
Node
var
notReady
[]
*
api
.
Node
err
:=
wait
.
PollImmediate
(
Poll
,
timeout
,
func
()
(
bool
,
error
)
{
err
:=
wait
.
PollImmediate
(
Poll
,
timeout
,
func
()
(
bool
,
error
)
{
...
...
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