-
Notifications
You must be signed in to change notification settings - Fork 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
Fix unchecked error in datapath/linux/ipsec #29423
Conversation
20e4758
to
933df35
Compare
/test |
This pull request has been automatically marked as stale because it |
4808f7d
to
e469205
Compare
/test |
Ensure errs are checked for the calls below: - deleteNodeIPSecOutRoute - replaceNodeIPSecOutRoute Signed-off-by: Fernand Galiana <[email protected]>
e469205
to
bde53b6
Compare
/test |
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.
Small proposed improvement for the error message. Otherwise LGTM.
@@ -178,7 +178,9 @@ func (n *linuxNodeHandler) enableIPsecIPv4(newNode *nodeTypes.Node, nodeID uint1 | |||
} | |||
} else { | |||
remoteCIDR := newNode.IPv4AllocCIDR.IPNet | |||
n.replaceNodeIPSecOutRoute(remoteCIDR) | |||
if err := n.replaceNodeIPSecOutRoute(remoteCIDR); err != nil { | |||
errs = errors.Join(errs, fmt.Errorf("failed to replace ipsec OUT (%q): %w", remoteCIDR.IP, 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.
Maybe failed to replace egress route to %q for IPsec: %w
?
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Fix unchecked error in datapath/linux/ipsec.go
The following calls are unchecked:
Fixes: #issue-number
Signed-off-by: Fernand Galiana [email protected]