-
Notifications
You must be signed in to change notification settings - Fork 40
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: add locking to map access #279
fix: add locking to map access #279
Conversation
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
=======================================
Coverage 70.23% 70.23%
=======================================
Files 19 19
Lines 2970 2970
=======================================
Hits 2086 2086
Misses 755 755
Partials 129 129
Continue to review full report at Codecov.
|
Is this missing the changes needed in reconcilers.go? |
Nope, the write part already locks: instance-manager/controllers/reconcilers.go Lines 125 to 138 in 165312e
|
Ah, gotcha. I'm blind :P Anywho - noticed a compilation failure on local - filed #280 to fix our checks.
|
Hmm, looks like we are bypassing |
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror eytan_avisror@intuit.com
Fixes #278
This adds a read lock/unlock when accessing Namespaces map