-
Notifications
You must be signed in to change notification settings - Fork 360
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
fix: decouple gateway status updates from the reconciler #4767
Conversation
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
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 <zhaohuabing@gmail.com>
were we deadlocking ? |
2b2535b
to
8323c0f
Compare
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
91fe885
to
bb391aa
Compare
bb391aa
to
7a4c51e
Compare
d948846
to
0a1f8f2
Compare
0a1f8f2
to
e406088
Compare
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
@@ -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. |
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.
LGTM thanks !
…4767) * decoup gateway status update Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * decoup gatewayclass status update Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * fix test Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * add comment Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * fix test Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * fix test Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * revert gateway api runner Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * update address and programming status Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * Revert "update address and programming status" This reverts commit bf3d07e. * avoid overriding the gateway status from Gateway API translator Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * minor wording Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * minor wording Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * only subscribe to status updates upon acquiring leadership Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * fix lint Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * minor wording Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * address comment Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * address comment Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * minor wording Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * fix lint Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * minor change Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> * release note Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> --------- Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> (cherry picked from commit c1ff135) Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Fixes: #4845
Release Note: Yes