-
Notifications
You must be signed in to change notification settings - Fork 810
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
chaosdaemon: make more TC filters work #1309
Conversation
Signed-off-by: cwen0 <cwenyin0@gmail.com>
/run-e2e-tests |
Codecov Report
@@ Coverage Diff @@
## master #1309 +/- ##
==========================================
- Coverage 55.78% 53.21% -2.57%
==========================================
Files 68 85 +17
Lines 4383 5346 +963
==========================================
+ Hits 2445 2845 +400
- Misses 1768 2231 +463
- Partials 170 270 +100
Continue to review full report at Codecov.
|
/run-e2e-tests |
Signed-off-by: cwen0 <cwenyin0@gmail.com>
0558e90
to
c190cf4
Compare
Signed-off-by: cwen0 <cwenyin0@gmail.com>
6653d84
to
1b39e88
Compare
/run-e2e-tests |
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
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
/merge |
/run-all-tests |
Signed-off-by: cwen0 cwenyin0@gmail.com
What problem does this PR solve?
Support more TC filters.
If the TC request doesn't include
ipset
field, the other filters won't work. Because we useipset
to distinguish if the tc rules need filters.https://github.com/chaos-mesh/chaos-mesh/blob/master/pkg/chaosdaemon/tc_server.go#L122-L127
What is changed and how does it work?
Check all TC filters(ipset, source port, egress port, Protocol) to distinguish if we need to set TC rules with filters.
Checklist
Tests
Side effects
Related changes
Does this PR introduce a user-facing change?