This PR continues the iptables refactoring work initiated by #357, by keeping a simple helper that works with structured rules and putting the auto-removing logic into a new object called RuleSet.
The TrafficRedirector has been refactored to use the new helper, but not the RuleSet.
Checklist:
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] I have run linter locally (make lint) and all checks pass.
[x] I have run tests locally (make test) and all tests pass.
[x] I have run relevant integration test locally (make integration-xxx for affected packages)
[ ] I have run relevant e2e test locally (make e2e-xxx for disruptors, or cluster related changes)
[ ] Any dependent changes have been merged and published in downstream modules
Description
This PR continues the iptables refactoring work initiated by #357, by keeping a simple helper that works with structured rules and putting the auto-removing logic into a new object called
RuleSet
.The TrafficRedirector has been refactored to use the new helper, but not the
RuleSet
.Checklist:
make lint
) and all checks pass.make test
) and all tests pass.make integration-xxx
for affected packages)make e2e-xxx
fordisruptors
, orcluster
related changes)