Skip to content
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

Ignore selected hostNetwork Pods in Egress groups #2851

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

Jexf
Copy link
Member

@Jexf Jexf commented Sep 28, 2021

Now Egress does not support HostNetwork Pods, so need to ignore selected HostNetwork Pods in Egress groups.

Fixes: #2850

Signed-off-by: Wu zhengdong zhengdong.wu@transwarp.io

@Jexf
Copy link
Member Author

Jexf commented Sep 28, 2021

/test-all
/test-ipv6-only
/test-ipv6-all

@Jexf
Copy link
Member Author

Jexf commented Sep 28, 2021

/test-all
/test-ipv6-only
/test-ipv6-all

Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code LGTM

I don't understand the commit title though. What does "deal" mean in "Egress skip deal"? Maybe it should say something like "Ignore selected hostNetwork Pods in Egress groups".

pkg/controller/egress/controller.go Outdated Show resolved Hide resolved
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM. Same comment about commit title as @antoninbas has.

Now Egress does not support HostNetwork Pods, so need to ignore selected HostNetwork
Pods in Egress groups.

Signed-off-by: Wu zhengdong <zhengdong.wu@transwarp.io>
@Jexf Jexf changed the title Egress skip deal with HostNetwork Pod Ignore selected hostNetwork Pods in Egress groups Sep 30, 2021
@Jexf
Copy link
Member Author

Jexf commented Sep 30, 2021

/test-all
/test-ipv6-only
/test-ipv6-all

@Jexf
Copy link
Member Author

Jexf commented Sep 30, 2021

Code LGTM. Same comment about commit title as @antoninbas has.

@tnqn Thanks for the review, updated.

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2021

Codecov Report

Merging #2851 (c3c4fe2) into main (e880406) will increase coverage by 25.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2851       +/-   ##
===========================================
+ Coverage   40.90%   65.97%   +25.07%     
===========================================
  Files         158      284      +126     
  Lines       19539    26871     +7332     
===========================================
+ Hits         7992    17729     +9737     
+ Misses      10798     7477     -3321     
- Partials      749     1665      +916     
Flag Coverage Δ
e2e-tests 56.27% <0.00%> (?)
kind-e2e-tests 49.18% <0.00%> (?)
unit-tests 40.90% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/controller/egress/controller.go 74.55% <100.00%> (-9.58%) ⬇️
pkg/controller/egress/ipallocator/allocator.go 65.00% <0.00%> (-15.42%) ⬇️
pkg/controller/networkpolicy/endpoint_querier.go 77.64% <0.00%> (-13.79%) ⬇️
pkg/agent/config/traffic_encryption_mode.go 91.66% <0.00%> (-8.34%) ⬇️
pkg/ovs/ovsconfig/errors.go 7.14% <0.00%> (-7.15%) ⬇️
pkg/agent/util/iptables/lock.go 75.00% <0.00%> (-6.82%) ⬇️
pkg/agent/config/traffic_encap_mode.go 94.73% <0.00%> (-5.27%) ⬇️
pkg/agent/apiserver/handlers/ovsflows/handler.go 67.80% <0.00%> (-4.85%) ⬇️
pkg/cni/client.go 71.15% <0.00%> (-4.36%) ⬇️
... and 269 more

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas antoninbas merged commit 65f6766 into antrea-io:main Sep 30, 2021
@Jexf Jexf deleted the egress-hostnetwork branch October 8, 2021 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EgressGroup maybe need to filter hostnetwork pod
4 participants