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

Iptables mock #2721

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Iptables mock #2721

merged 1 commit into from
Dec 21, 2023

Conversation

jchen6585
Copy link
Contributor

What type of PR is this?

enhancement

Which issue does this PR fix:
#2711

What does this PR do / Why do we need it:
Refactors our iptables mock to have more coverage and mimic code behavior (e.g. differentiating append and insert)

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:

Testing done on this change:

make unit-test

Will this PR introduce any new dependencies?:

No

Will this break upgrades or downgrades? Has updating a running cluster been tested?:
No, No

Does this change require updates to the CNI daemonset config files to work?:

No

Does this PR introduce any user-facing change?:

No


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jchen6585 jchen6585 requested a review from a team as a code owner December 20, 2023 00:21
Copy link
Contributor

@jdn5126 jdn5126 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! iptables is a confusing area, so I have a few questions that I hope can make the functions more intuitive for future users

pkg/iptableswrapper/mocks/iptables_maps.go Outdated Show resolved Hide resolved
pkg/iptableswrapper/mocks/iptables_maps.go Outdated Show resolved Hide resolved
pkg/iptableswrapper/mocks/iptables_maps.go Outdated Show resolved Hide resolved
pkg/iptableswrapper/mocks/iptables_maps.go Show resolved Hide resolved
pkg/networkutils/network_test.go Outdated Show resolved Hide resolved
pkg/networkutils/network_test.go Outdated Show resolved Hide resolved
pkg/iptableswrapper/mocks/iptables_maps.go Outdated Show resolved Hide resolved
pkg/networkutils/network_test.go Outdated Show resolved Hide resolved
pkg/iptableswrapper/mocks/iptables_maps.go Outdated Show resolved Hide resolved
@jchen6585 jchen6585 force-pushed the iptables-mock branch 2 times, most recently from aa1a68b to 2dcc980 Compare December 21, 2023 19:48
@jdn5126 jdn5126 merged commit 6a13d8e into aws:master Dec 21, 2023
6 checks passed
@jdn5126 jdn5126 mentioned this pull request Dec 25, 2023
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.

2 participants