-
Notifications
You must be signed in to change notification settings - Fork 373
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
Support AntreaNetworkPolicy reject action in Traceflow #2032
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2032 +/- ##
==========================================
+ Coverage 60.78% 61.39% +0.60%
==========================================
Files 269 269
Lines 20326 20846 +520
==========================================
+ Hits 12356 12799 +443
- Misses 6677 6738 +61
- Partials 1293 1309 +16
Flags with carried forward coverage won't be shown. Click here to find out more.
|
b9370d0
to
0be85b0
Compare
/test-all |
6b17484
to
e4be8cf
Compare
/test-all |
/test-all |
/test-hw-offload |
08bd34f
to
9b224bc
Compare
/test-all |
affa354
to
37c1a53
Compare
/test-all |
/test-ipv6-all |
/test-windows-e2e |
/test-windows-networkpolicy |
/test-ipv6-only-conformance |
/test-ipv6-only-conformance |
There's an "invalid memory address or nil pointer dereference" error for IPv6 tests. I think it is related to implementation. |
It's introduced by this change #2029 (review) . I'm discussing with Jianjun. |
/test-ipv6-only-e2e |
/test-ipv6-e2e |
/test-all |
/test-all-features-conformance |
40dfdfa
to
d880fb5
Compare
/test-all |
/test-e2e |
pkg/apis/crd/v1alpha1/types.go
Outdated
@@ -51,6 +51,15 @@ const ( | |||
ActionForwardedOutOfOverlay TraceflowAction = "ForwardedOutOfOverlay" | |||
) | |||
|
|||
type TraceflowRejectAction string | |||
|
|||
const ( |
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.
But why we need to define reject actions? The behavior is fixed right - TPCis always reset, and others are always ICMPProhibited. In my mind, we just need a new TraceflowAction called ActionRejected.
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.
For the "reject" implementation in Antrea, it is a "drop" action with responding specific message. Thus I use another "rejectAction" property to store this information, but I'm OK to discard this new property and use action=ActionRejected instead.
@tnqn @antoninbas Any comments?
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.
I think we should drop it for now until we give users the ability to configure the reject action (if we ever do that...)
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.
Thanks. I dropped current design and use action=ActionRejected instead.
/test-e2e |
16f1057
to
e842ac9
Compare
/test-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.
LGTM
/test-e2e |
/test-e2e |
/test-e2e |
Errors in jenkins-ipv6-ds-e2e and jenkins-ipv6-only-conformance are not related to this patch. |
No description provided.