-
Notifications
You must be signed in to change notification settings - Fork 905
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
feat: report event when the service doesn't exist/when endpointslice api is disabled #4433
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4433 +/- ##
==========================================
- Coverage 51.89% 51.86% -0.03%
==========================================
Files 243 243
Lines 24165 24167 +2
==========================================
- Hits 12540 12535 -5
- Misses 10944 10950 +6
- Partials 681 682 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e84d737
to
277d9da
Compare
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~
/lgtm
277d9da
to
e5164ed
Compare
e5164ed
to
97c0280
Compare
230d31b
to
1fdd987
Compare
if err := helper.CreateOrUpdateWork(c.Client, workMeta, unstructuredEPS); err != nil { | ||
klog.Errorf("Failed to dispatch EndpointSlice %s/%s from %s to cluster %s:%v", | ||
work.GetNamespace(), work.GetName(), epsSourceCluster, clusterName, err) | ||
if err := c.ensureEndpointSliceWork(mcs, work, epsSourceCluster, clusterName); err != nil { | ||
return 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.
Consider handling resources as much as possible.
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 PR should only focus on event, let's do it in another PR.
pkg/controllers/multiclusterservice/endpointslice_dispatch_controller.go
Outdated
Show resolved
Hide resolved
if err := helper.CreateOrUpdateWork(c.Client, workMeta, unstructuredEPS); err != nil { | ||
klog.Errorf("Failed to dispatch EndpointSlice %s/%s from %s to cluster %s:%v", | ||
work.GetNamespace(), work.GetName(), epsSourceCluster, clusterName, err) | ||
if err := c.ensureEndpointSliceWork(mcs, work, epsSourceCluster, clusterName); err != nil { | ||
return 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.
This PR should only focus on event, let's do it in another PR.
…api is disabled Signed-off-by: jwcesign <jwcesign@gmail.com>
fb9cca2
to
68e77d2
Compare
68e77d2
to
cfd8892
Compare
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
It's better to report the event if he service doesn't exist or endpointslice api is disabled, convenient for troubleshooting.
Which issue(s) this PR fixes:
Fixes #none
Special notes for your reviewer:
test result:
Does this PR introduce a user-facing change?: