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
422917b3
Unverified
Commit
422917b3
authored
Aug 24, 2018
by
Maciej Borsz
Committed by
GitHub
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Parallelize RC deletion in density test"
parent
48b0cb78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
density.go
test/e2e/scalability/density.go
+3
-12
No files found.
test/e2e/scalability/density.go
View file @
422917b3
...
@@ -357,23 +357,14 @@ func cleanupDensityTest(dtc DensityTestConfig, testPhaseDurations *timer.TestPha
...
@@ -357,23 +357,14 @@ func cleanupDensityTest(dtc DensityTestConfig, testPhaseDurations *timer.TestPha
By
(
"Deleting created Collections"
)
By
(
"Deleting created Collections"
)
numberOfClients
:=
len
(
dtc
.
ClientSets
)
numberOfClients
:=
len
(
dtc
.
ClientSets
)
// We explicitly delete all pods to have API calls necessary for deletion accounted in metrics.
// We explicitly delete all pods to have API calls necessary for deletion accounted in metrics.
wg
:=
sync
.
WaitGroup
{}
wg
.
Add
(
len
(
dtc
.
Configs
))
for
i
:=
range
dtc
.
Configs
{
for
i
:=
range
dtc
.
Configs
{
name
:=
dtc
.
Configs
[
i
]
.
GetName
()
name
:=
dtc
.
Configs
[
i
]
.
GetName
()
namespace
:=
dtc
.
Configs
[
i
]
.
GetNamespace
()
namespace
:=
dtc
.
Configs
[
i
]
.
GetNamespace
()
kind
:=
dtc
.
Configs
[
i
]
.
GetKind
()
kind
:=
dtc
.
Configs
[
i
]
.
GetKind
()
client
:=
dtc
.
ClientSets
[
i
%
numberOfClients
]
By
(
fmt
.
Sprintf
(
"Cleaning up only the %v, garbage collector will clean up the pods"
,
kind
))
go
func
()
{
err
:=
framework
.
DeleteResourceAndWaitForGC
(
dtc
.
ClientSets
[
i
%
numberOfClients
],
kind
,
namespace
,
name
)
defer
GinkgoRecover
()
framework
.
ExpectNoError
(
err
)
// Call wg.Done() in defer to avoid blocking whole test
// in case of error from RunRC.
defer
wg
.
Done
()
err
:=
framework
.
DeleteResourceAndWaitForGC
(
client
,
kind
,
namespace
,
name
)
framework
.
ExpectNoError
(
err
)
}()
}
}
wg
.
Wait
()
podCleanupPhase
.
End
()
podCleanupPhase
.
End
()
dtc
.
deleteSecrets
(
testPhaseDurations
.
StartPhase
(
910
,
"secrets deletion"
))
dtc
.
deleteSecrets
(
testPhaseDurations
.
StartPhase
(
910
,
"secrets deletion"
))
...
...
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