-
Notifications
You must be signed in to change notification settings - Fork 198
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
add endpoint slice handler #435
Conversation
Codecov Report
@@ Coverage Diff @@
## main #435 +/- ##
==========================================
+ Coverage 13.72% 13.74% +0.02%
==========================================
Files 61 61
Lines 6595 6607 +12
==========================================
+ Hits 905 908 +3
- Misses 5623 5629 +6
- Partials 67 70 +3
Continue to review full report at Codecov.
|
640d33c
to
81deb97
Compare
LabelSelector: labels.SelectorFromSet(labels.Set{discoveryv1.LabelServiceName: utils.DerivedName(namespace, seName)}).String()}); err == nil { | ||
shouldRetry := false | ||
for _, item := range parentEndpointSliceList.Items { | ||
if !localEndpointSliceMap[item.Name] { |
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.
This may not be right, since L144 uses namespaced name as keys.
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.
This may not be right, since L144 uses namespaced name as keys.
On L144, the enpointslice item is in child cluster, and the name is raw enpointslice name, like my-service-pt9nk.
While here, L149, the item is in parent cluster enpointslice, the name is default-my-service-pt9nk formated on L270.
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.
Ok, I got it.
This is a little bit tricky. Maybe we should add some comments here. Feel free to improve this in a new PR.
Signed-off-by: lmxia <xialingming@gmail.com>
81deb97
to
1cd55ee
Compare
Signed-off-by: lmxia xialingming@gmail.com
What type of PR is this?
kind/feature
What this PR does / why we need it:
Add endpoint slice event handler.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Add remove endpoint slices logic, if endpoint slices exist in parent cluster but not in child cluster.