-
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
networkchaos: support select different interface in networkchaos #2290
networkchaos: support select different interface in networkchaos #2290
Conversation
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
/run-e2e-tests |
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
/run-e2e-tests |
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
…networkchaos Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
/run-e2e-tests |
3 similar comments
/run-e2e-tests |
/run-e2e-tests |
/run-e2e-tests |
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
/run-e2e-tests |
/run-e2e-tests |
/run-e2e-tests |
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
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 |
This pull request has been accepted and is ready to merge. Commit hash: 4bc5e31
|
I noticed that there are still some TODO works on docs and frontend, PTAL @YangKeao @g1eny0ung . |
…os-mesh#2290) * add device field Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * support select interface Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * fix yaml files Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * filter interface according to input and output Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * remove duplicate cases Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * fix e2e test Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * add comments Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * refine the check condition Signed-off-by: YangKeao <yangkeao@chunibyo.icu> * handle error from json.Unmarshal Signed-off-by: YangKeao <yangkeao@chunibyo.icu> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Please add the description of the |
Also, it's better to add an example (with an explanation) to tell people how to use it. :) |
What problem does this PR solve?
Issue Number: close #2247
Problem Summary:
NetworkChaos
doesn't support selecting different interfaces yet. AllNetworkChaos
will operate on interfaceeth0
. However, withMultus
or some other CNI, it's possible to have multiple different interfaces.What is changed and how it works?
The
device
argument was added to the protobuf protocol, and thetc
command/iptables
command will use corresponding arguments to add netem/iptables rules on the specific interface.Related changes
chaos-mesh/website
/chaos-mesh/website-zh
: TODOChecklist
Tests
I created a cluster with
Multus
, and test theNetworkChaos
on it.Release note