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
Updating EndpointSliceMirroring controller to wait for cache to be updated #99756
Updating EndpointSliceMirroring controller to wait for cache to be updated #99756
Conversation
@robscott: GitHub didn't allow me to request PR reviews from the following users: swetharepakula. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: robscott 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 |
d98282f
to
8445e61
Compare
/hold
in the syncEndpoints() function in line 318 of the |
…dated This matches the recent updates to the EndpointSliceTracker for the EndpointSlice controller in kubernetes#99345 that accomplished the same thing.
8445e61
to
06db357
Compare
// EndpointSlice generation does not change when labels change. Although the | ||
// controller will never change LabelServiceName, users might. This check | ||
// ensures that we handle changes to this label. | ||
svcName := endpointSlice.Labels[discovery.LabelServiceName] | ||
prevSvcName := prevEndpointSlice.Labels[discovery.LabelServiceName] | ||
if svcName != prevSvcName { | ||
klog.Warningf("%s label changed from %s to %s for %s", discovery.LabelServiceName, prevSvcName, svcName, endpointSlice.Name) | ||
c.queueEndpointsForEndpointSlice(endpointSlice) | ||
c.queueEndpointsForEndpointSlice(prevEndpointSlice) | ||
return | ||
} |
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.
Thanks for catching that @aojea! I double checked everything and think this should have all the same logic now, let me know if I'm missing anything. |
/hold cancel |
@JornShen is this something that you want to give it a shot? ^^^ |
To clarify, I'm very open to help on this one, that PR is quite old and adds pretty minimal value, if someone has time to take this on that would be awesome. @aojea thanks for helping find someone that can take this on! |
/retest |
1 similar comment
/retest |
Test flakes were:
/retest |
yeah, I can help do it |
…756-release-1.19 Automated cherry pick of #99756: Updating EndpointSliceMirroring controller to wait for cache
…756-release-1.20 Automated cherry pick of #99756: Updating EndpointSliceMirroring controller to wait for cache
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it:
This matches the recent updates to the EndpointSliceTracker for the EndpointSlice controller in #99345 that accomplished the same thing.
Does this PR introduce a user-facing change?
/sig network
/triage accepted
/priority important-soon
/cc @aojea @swetharepakula
/assign @wojtek-t