Skip to content
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

Protect the platform behind a mutex #2278

Merged
merged 8 commits into from
Aug 23, 2023
Merged

Conversation

iblancasa
Copy link
Collaborator

Which problem is this PR solving?

Short description of the changes

  • Added a new structure to manage the operator configuration
  • Protect the Platform setting behind a mutex

Note: this work needs to be done for other settings too but will be done in follow-up PRs

@openshift-ci
Copy link

openshift-ci bot commented Aug 1, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 94.82% and project coverage change: +0.02% 🎉

Comparison is base (dde9e07) 87.68% compared to head (1e090da) 87.71%.
Report is 1 commits behind head on main.

❗ Current head 1e090da differs from pull request most recent head 408fc16. Consider uploading reports for the commit 408fc16 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2278      +/-   ##
==========================================
+ Coverage   87.68%   87.71%   +0.02%     
==========================================
  Files         101      102       +1     
  Lines        7129     7162      +33     
==========================================
+ Hits         6251     6282      +31     
- Misses        681      683       +2     
  Partials      197      197              
Files Changed Coverage Δ
apis/v1/jaeger_types.go 87.50% <ø> (ø)
pkg/config/tls/tls.go 91.30% <0.00%> (ø)
pkg/autodetect/operatorconfig.go 93.54% <93.54%> (ø)
pkg/autodetect/main.go 81.49% <100.00%> (+0.14%) ⬆️
pkg/config/ca/ca.go 100.00% <100.00%> (ø)
pkg/controller/jaeger/jaeger_controller.go 50.00% <100.00%> (ø)
pkg/cronjob/es_rollover.go 96.72% <100.00%> (ø)
pkg/deployment/agent.go 100.00% <100.00%> (ø)
pkg/deployment/all_in_one.go 100.00% <100.00%> (ø)
pkg/inject/sidecar.go 93.55% <100.00%> (ø)
... and 5 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iblancasa iblancasa marked this pull request as ready for review August 7, 2023 17:59
Signed-off-by: Israel Blancas <[email protected]>
@iblancasa iblancasa merged commit 3c5aec6 into jaegertracing:main Aug 23, 2023
23 checks passed
@iblancasa iblancasa deleted the bug/1983-3 branch August 23, 2023 09:38
@@ -68,6 +68,9 @@ func TestStartContinuesInBackground(t *testing.T) {
}
b := WithClients(cl, dcl, cl)

fmt.Println(viper.IsSet("auth-delegator-available"))
fmt.Println(viper.GetBool("auth-delegator-available"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a debug leftover?

@@ -85,7 +88,7 @@ func TestStartContinuesInBackground(t *testing.T) {
select {
case <-done:
assert.False(t, viper.GetBool("auth-delegator-available"))
case <-time.After(1 * time.Second):
case <-time.After(5 * time.Second):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we changed it from 1 to 5 s and in the next pr we change it back to 1s? seems weird to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fatal error: concurrent map read and map write
3 participants