-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 context to flannel errors #8284
Conversation
@@ -49,7 +49,7 @@ var ( | |||
func flannel(ctx context.Context, flannelIface *net.Interface, flannelConf, kubeConfigFile string, flannelIPv6Masq bool, multiClusterCIDR bool, netMode int) error { | |||
extIface, err := LookupExtInterface(flannelIface, netMode) | |||
if err != nil { | |||
return err | |||
return errors.Wrap(err, "failed to find the interface") |
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.
Looks like you need to import errors
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.
yep, now it should work
Signed-off-by: Manuel Buil <mbuil@suse.com>
a29aa30
to
66cb106
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #8284 +/- ##
==========================================
+ Coverage 47.61% 51.77% +4.16%
==========================================
Files 143 143
Lines 14732 14732
==========================================
+ Hits 7014 7627 +613
+ Misses 6623 5902 -721
- Partials 1095 1203 +108
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Proposed Changes
Add extra context to the flannel errors to simplify debugging exercises
Types of Changes
Bugfix
Verification
Try to create an error and see the new extra information in the logs
Testing
Linked Issues
#8278
User-Facing Change
Further Comments