Skip to content

Commit

Permalink
Merge pull request kubernetes#2087 from FANHIDE/issue-2081-fixdeletens
Browse files Browse the repository at this point in the history
fix issue-2081 delete namespace sometimes error
  • Loading branch information
k8s-ci-robot authored Jun 30, 2022
2 parents 1990821 + 6f1bb54 commit c4073a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clusterloader2/pkg/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (f *Framework) DeleteAutomanagedNamespaces() *errors.ErrorList {
var wg wait.Group
errList := errors.NewErrorList()
for namespace, shouldBeDeleted := range f.getAutomanagedNamespaces() {
namespace := namespace
if shouldBeDeleted {
wg.Start(func() {
if err := f.deleteNamespace(namespace); err != nil {
Expand Down

0 comments on commit c4073a0

Please sign in to comment.