-
Notifications
You must be signed in to change notification settings - Fork 387
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
[Windows] Remove HNSEndpoint only if infra container fails to create #2976
[Windows] Remove HNSEndpoint only if infra container fails to create #2976
Conversation
@@ -140,7 +140,9 @@ func (ic *ifConfigurator) configureContainerLink( | |||
containerIface, err := attachContainerLink(endpoint, containerID, containerNetNS, containerIFDev) |
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.
If we have check outside the func attachContainerLink
, maybe we could remove this check: https://github.com/antrea-io/antrea/blob/main/pkg/agent/cniserver/interface_configuration_windows.go#L302
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.
Done.
Codecov Report
@@ Coverage Diff @@
## main #2976 +/- ##
===========================================
+ Coverage 40.23% 60.86% +20.63%
===========================================
Files 166 289 +123
Lines 20693 24540 +3847
===========================================
+ Hits 8326 14937 +6611
+ Misses 11558 7974 -3584
- Partials 809 1629 +820
Flags with carried forward coverage won't be shown. Click here to find out more.
|
533a0fe
to
4ec8d8e
Compare
/test-all /test-windows-all |
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.
In the commit message:
there's no need to remove HNSEndpoint if failure
"if failure" -> "at failure" or "if fails to attach the HNS Endpoint"
For non-infra containers, there's no need to remove HNSEndpoint at failure since it will be done when the Pod is removed. Signed-off-by: Zhecheng Li <lzhecheng@vmware.com>
4ec8d8e
to
a135fb5
Compare
@jianjuns Done. |
/test-all /test-windows-all |
/test-windows-e2e /test-e2e /test-windows-networkpolicy |
For non-infra containers, there's no need to remove HNSEndpoint if failure since it will be done when the Pod is removed.
Signed-off-by: Zhecheng Li lzhecheng@vmware.com