-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix leaking goroutine in multiple integration tests by migrating to common StartTestServer utility #110229
Merged
k8s-ci-robot
merged 20 commits into
kubernetes:master
from
wojtek-t:fix_leaking_goroutines_1
May 27, 2022
Merged
Fix leaking goroutine in multiple integration tests by migrating to common StartTestServer utility #110229
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6ae4bbb
Add namespace utility test functions
wojtek-t 3b98f59
Clean shutdown of service integration tests
wojtek-t f68e72a
Clean shutdown of volume integration tests
wojtek-t c6e3bd7
Clean shutdown of persistentvolume integration tests
wojtek-t 284509f
Clean shutdown of ttlcontroller integration tests
wojtek-t 054c489
Clean shutdown of metrics integration tests
wojtek-t 7928929
Clean shutdown of pods integration tests
wojtek-t 368802d
Clean shutdown of deployment integration tests
wojtek-t 33831c9
Clean shutdown of replicaset integration tests
wojtek-t 7ac6638
Clean shutdown of replicationcontroller integration tests
wojtek-t 7add7ba
Clean shutdown of endpoints integration tests
wojtek-t 492bad0
Clean shutdown of endpointslice integration tests
wojtek-t 7b44e64
Clean shutdown of secret integration tests
wojtek-t fbd2184
Clean shutdown of namespace integration tests
wojtek-t b8d28ef
Clean shutdown of storageclasses integration tests
wojtek-t 5fc1c39
Clean shutdown of configmap integration tests
wojtek-t 2583942
Clean shutdown of daemonset integration tests
wojtek-t c0149f7
Clean shutdown of certificates integration tests
wojtek-t 2893ad3
Clean shutdown of evictions integration tests
wojtek-t 8ca1ec2
Clean shutdown of cronjob integration tests
wojtek-t File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you always create the namespace after create the clients in this commit
I think that doesn't matter, but is there any special reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this PR we effectively weren't creating the namespace (CreateTestingNamespace isn't effectively creating a namespace:
https://github.com/kubernetes/kubernetes/blob/master/test/integration/framework/util.go#L54
So we didn't need the client for that.
After switching to more realistic apiserver in this PR (that e.g. has namespace admission plugins enabled) we have to actually create a namespace (or alternatively disable namespace admission plugins, but I think it's better to those test be as realistic as possible), which requires having a client.
So I need to do that after creating a client.
Now the options are:
createClients
Since this doesn't matter really, I chose a cheaper to execute option :)