-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
[client] Cleanup firewall state on startup #2768
Conversation
client/firewall/create_linux.go
Outdated
@@ -58,6 +59,12 @@ func NewFirewall(context context.Context, iface IFaceMapper) (firewall.Manager, | |||
log.Info("no firewall manager found, trying to use userspace packet filtering firewall") | |||
} | |||
|
|||
if fm != nil { | |||
if err := fm.Init(stateManager); err != nil { |
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.
What will be if the iface.IsUserspaceBind() scope happens an error? Should not we revert this initialization?
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.
Probably, but this is out of scope for the PR. I just split out the init logic in the Create
functions so it is not run when cleaning up only.
Quality Gate passedIssues Measures |
Describe your changes
Issue ticket number and link
Checklist