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
7698196f
Commit
7698196f
authored
Mar 14, 2017
by
Anirudh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a timeout to allow replacement pod to become ready
parent
a91869a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
util.go
test/e2e/framework/util.go
+5
-3
No files found.
test/e2e/framework/util.go
View file @
7698196f
...
...
@@ -136,7 +136,7 @@ const (
// How long pods have to become scheduled onto nodes
podScheduledBeforeTimeout
=
PodListTimeout
+
(
20
*
time
.
Second
)
podRespondingTimeout
=
2
*
time
.
Minute
podRespondingTimeout
=
15
*
time
.
Minute
ServiceRespondingTimeout
=
2
*
time
.
Minute
EndpointRegisterTimeout
=
time
.
Minute
...
...
@@ -1634,8 +1634,10 @@ func (r podProxyResponseChecker) CheckAllResponses() (done bool, err error) {
}
if
err
!=
nil
{
if
ctx
.
Err
()
!=
nil
{
Failf
(
"Controller %s: Failed to Get from replica %d [%s]: %v
\n
pod status: %#v"
,
r
.
controllerName
,
i
+
1
,
pod
.
Name
,
err
,
pod
.
Status
)
return
false
,
err
// We may encounter errors here because of a race between the pod readiness and apiserver
// proxy. So, we log the error and retry if this occurs.
Logf
(
"Controller %s: Failed to Get from replica %d [%s]: %v
\n
pod status: %#v"
,
r
.
controllerName
,
i
+
1
,
pod
.
Name
,
err
,
pod
.
Status
)
return
false
,
nil
}
Logf
(
"Controller %s: Failed to GET from replica %d [%s]: %v
\n
pod status: %#v"
,
r
.
controllerName
,
i
+
1
,
pod
.
Name
,
err
,
pod
.
Status
)
continue
...
...
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