Merge pull request #36154 from m1093782566/m109-fix-del-ns
Automatic merge from submit-queue
fix e2e delete namespace bug
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->
**What:**
Fix `CreateNamespace()` bug in `test/e2e/framework/framework.go`.
**Why:**
If we successfully create a namespace but fail to create a ServiceAccount in it, we should delete the namespace after test.
The current implement of `CreateNamespace()` int e2e test will forget to delete the namespace which we fail to create serviceAccount in it(but the namespace has been successfully created!).
Showing
Please
register
or
sign in
to comment