-
Notifications
You must be signed in to change notification settings - Fork 359
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: decouple gateway status updates from the reconciler #4767
base: main
Are you sure you want to change the base?
fix: decouple gateway status updates from the reconciler #4767
Conversation
Signed-off-by: Huabing Zhao <[email protected]>
1797785
to
8c84649
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4767 +/- ##
==========================================
+ Coverage 66.24% 66.31% +0.06%
==========================================
Files 209 209
Lines 31922 31950 +28
==========================================
+ Hits 21148 21188 +40
+ Misses 9523 9512 -11
+ Partials 1251 1250 -1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Huabing Zhao <[email protected]>
were we deadlocking ? |
Signed-off-by: Huabing Zhao <[email protected]>
2b2535b
to
8323c0f
Compare
Signed-off-by: Huabing Zhao <[email protected]>
91fe885
to
bb391aa
Compare
Signed-off-by: Huabing Zhao <[email protected]>
bb391aa
to
7a4c51e
Compare
d948846
to
0a1f8f2
Compare
Signed-off-by: Huabing Zhao <[email protected]>
0a1f8f2
to
e406088
Compare
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
@@ -37,19 +38,22 @@ type Server struct { | |||
// Logger is the logr implementation used by Envoy Gateway. | |||
Logger logging.Logger | |||
// Elected chan is used to signal what a leader is elected | |||
Elected chan struct{} | |||
Elected *sync.WaitGroup |
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.
why we need a pointer here?
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.
internal/infrastructure/runner/runner.go:35:25: copylocks: literal copies lock value from *cfg: github.com/envoyproxy/gateway/internal/infrastructure/runner.Config contains github.com/envoyproxy/gateway/internal/envoygateway/config.Server contains sync.WaitGroup contains sync.noCopy (govet)
return &Runner{Config: *cfg}
Verified with #4904. |
Fixes: #4845
Release Note: Yes