-
Notifications
You must be signed in to change notification settings - Fork 407
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: re-list when target change #1195
fix: re-list when target change #1195
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1195 +/- ##
==========================================
- Coverage 52.35% 52.16% -0.20%
==========================================
Files 106 106
Lines 13852 13880 +28
==========================================
- Hits 7252 7240 -12
- Misses 5952 5991 +39
- Partials 648 649 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I still have some questions for such problem:
|
Thanks for your great comments @Congrool
|
Sounds good to me |
if lb.coordinatorGetter == nil { | ||
continue | ||
} | ||
klog.Infof("lb.coordinatorGetter is %s", lb.coordinatorGetter) |
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.
We may not need such log, please remove
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.
Fine!
coordinator := lb.coordinatorGetter() | ||
if coordinator == nil { | ||
klog.Infof("lb.coordinatorGetter().coordinator is nil") |
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.
ditto
cloudServeCancel() | ||
return | ||
} | ||
klog.Infof("coordinator.IsReady() is false") |
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.
ditto
Could you please squash your commits to make the commit message more readable? |
Another question, is it possible that: Will it still have some problems in such situation? |
Yes, that's still a problem. But it's very rare. I think we can talk about it and fix it totally later. |
…hange(cloud to pool-coor or pool-coor to cloud)
acafc79
to
5636359
Compare
I've fixed your great comments above. @Congrool |
LGTM as a solution for most cases, thanks for your contribution! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LaurenceLiZhixin, rambohe-ch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/backport release-v1.2 |
Successfully created backport PR for |
Force re-list pool-scope resource when proxy change between loadbalancer and pool-coordinator