-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 Use client-go global scheme as much as possible
A test is currently flaking and reporting a race condition because we use the scheme in a way that shouldn't be used. A runtime.Scheme object is not safe to use concurrently (add and read at the same time), but it's meant to be used in an immutable way after the first registration happens. In some tests we were reusing and adding to the same scheme while other tests were reading from it, this caused a race condition to trigger given that the scheme uses maps internally to store its information. Going forward, we should standardize on using the global scheme more and more to keep things simple. This would not only simplify our tests, but also simplify our code. Signed-off-by: Vince Prignano <[email protected]>
- Loading branch information
Showing
46 changed files
with
365 additions
and
504 deletions.
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
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
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
Oops, something went wrong.