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
5b4dc4ed
Commit
5b4dc4ed
authored
Jun 24, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10225 from wojtek-t/increase_deleting_namespace_timeout
Increase timeout for namespace deletion.
parents
fbb83a45
6b6b4098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
util.go
test/e2e/util.go
+14
-1
No files found.
test/e2e/util.go
View file @
5b4dc4ed
...
@@ -379,8 +379,21 @@ func createTestingNS(baseName string, c *client.Client) (*api.Namespace, error)
...
@@ -379,8 +379,21 @@ func createTestingNS(baseName string, c *client.Client) (*api.Namespace, error)
// deleteTestingNS checks whether all e2e based existing namespaces are in the Terminating state
// deleteTestingNS checks whether all e2e based existing namespaces are in the Terminating state
// and waits until they are finally deleted.
// and waits until they are finally deleted.
func
deleteTestingNS
(
c
*
client
.
Client
)
error
{
func
deleteTestingNS
(
c
*
client
.
Client
)
error
{
// TODO: Since we don't have support for bulk resource deletion in the API,
// while deleting a namespace we are deleting all objects from that namespace
// one by one (one deletion == one API call). This basically exposes us to
// throttling - currently controller-manager has a limit of max 20 QPS.
// Once #10217 is implemented and used in namespace-controller, deleting all
// object from a given namespace should be much faster and we will be able
// to lower this timeout.
// However, now Density test is producing ~26000 events and Load capacity test
// is producing ~35000 events, thus assuming there are no other requests it will
// take ~30 minutes to fully delete the namespace. Thus I'm setting it to 60
// minutes to avoid any timeouts here.
timeout
:=
60
*
time
.
Minute
Logf
(
"Waiting for terminating namespaces to be deleted..."
)
Logf
(
"Waiting for terminating namespaces to be deleted..."
)
for
start
:=
time
.
Now
();
time
.
Since
(
start
)
<
30
*
time
.
Minute
;
time
.
Sleep
(
15
*
time
.
Second
)
{
for
start
:=
time
.
Now
();
time
.
Since
(
start
)
<
timeout
;
time
.
Sleep
(
15
*
time
.
Second
)
{
namespaces
,
err
:=
c
.
Namespaces
()
.
List
(
labels
.
Everything
(),
fields
.
Everything
())
namespaces
,
err
:=
c
.
Namespaces
()
.
List
(
labels
.
Everything
(),
fields
.
Everything
())
if
err
!=
nil
{
if
err
!=
nil
{
Logf
(
"Listing namespaces failed: %v"
,
err
)
Logf
(
"Listing namespaces failed: %v"
,
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