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
a0c6a664
Commit
a0c6a664
authored
Aug 18, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust waitForPodsInactive polling interval and timeout
parent
c9b28416
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
util.go
test/e2e/framework/util.go
+16
-1
No files found.
test/e2e/framework/util.go
View file @
a0c6a664
...
@@ -3131,7 +3131,22 @@ func DeleteRCAndWaitForGC(c *client.Client, ns, name string) error {
...
@@ -3131,7 +3131,22 @@ func DeleteRCAndWaitForGC(c *client.Client, ns, name string) error {
}
}
deleteRCTime
:=
time
.
Now
()
.
Sub
(
startTime
)
deleteRCTime
:=
time
.
Now
()
.
Sub
(
startTime
)
Logf
(
"Deleting RC %s took: %v"
,
name
,
deleteRCTime
)
Logf
(
"Deleting RC %s took: %v"
,
name
,
deleteRCTime
)
err
=
waitForPodsInactive
(
ps
,
10
*
time
.
Millisecond
,
10
*
time
.
Minute
)
var
interval
,
timeout
time
.
Duration
switch
{
case
rc
.
Spec
.
Replicas
<
100
:
interval
=
10
*
time
.
Millisecond
timeout
=
10
*
time
.
Minute
case
rc
.
Spec
.
Replicas
<
1000
:
interval
=
1
*
time
.
Second
timeout
=
10
*
time
.
Minute
case
rc
.
Spec
.
Replicas
<
10000
:
interval
=
10
*
time
.
Second
timeout
=
10
*
time
.
Minute
default
:
interval
=
10
*
time
.
Second
timeout
=
40
*
time
.
Minute
}
err
=
waitForPodsInactive
(
ps
,
interval
,
timeout
)
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"error while waiting for pods to become inactive %s: %v"
,
name
,
err
)
return
fmt
.
Errorf
(
"error while waiting for pods to become inactive %s: %v"
,
name
,
err
)
}
}
...
...
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