-
Notifications
You must be signed in to change notification settings - Fork 29
Sync Service/Deployment changes #88
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
Conversation
…ts. EndpointSlice events are triggered by Service or Deployment changes. Refactor ServiceExport to handle the deletion scenario when the Service corresponding to ServiceExport is deleted. Also, updating the e2e test to accommodate the scale-up scenario. Improvements in unit tests.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #88 +/- ##
==========================================
- Coverage 76.30% 73.52% -2.78%
==========================================
Files 14 14
Lines 1224 1292 +68
==========================================
+ Hits 934 950 +16
- Misses 226 274 +48
- Partials 64 68 +4
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
if cmService != nil { | ||
if err := r.CloudMap.DeleteEndpoints(ctx, cmService.Namespace, cmService.Name, cmService.Endpoints); err != nil { | ||
r.Log.Error(err, "error while deleting endpoints from Cloud Map", | ||
"namespace", cmService.Namespace, "name", cmService.Name) | ||
return ctrl.Result{}, err |
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.
I guess in the future we'll return something other than empty struct.
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.
Right now our strategy seems to be just log error, and move on. We have to probably figure out fault-tolerance strategy before GA.
Issue #, if available: Fixes #20
Description of changes: Adding the listener to the Service Export Controller to track EndpointSlice events. EndpointSlice events are triggered by Service or Deployment changes. Refactor ServiceExport to handle the deletion scenario when the Service corresponding to ServiceExport is deleted. Also, updating the e2e test to accommodate the scale-up scenario. Improvements in unit tests.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.