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

drop iptables support #13

Merged
merged 2 commits into from
Apr 23, 2024
Merged

drop iptables support #13

merged 2 commits into from
Apr 23, 2024

Conversation

aojea
Copy link
Contributor

@aojea aojea commented Apr 23, 2024

no time for dealing with the old stuff , since we are moving on with nftables everywhere , having to maintain both is a lot of work for no much return

#12

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 23, 2024
// NewController returns a new *Controller.
func NewController(client clientset.Interface,
nft knftables.Interface,

Choose a reason for hiding this comment

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

Why pass nft into NewController but not nfq?

I feel like it makes more sense to have Controller create the knftables object itself. It knows what it needs; main doesn't.

Copy link
Contributor Author

@aojea aojea Apr 23, 2024

Choose a reason for hiding this comment

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

to mock it in the tests, so I can inject the Fake object

Copy link
Contributor Author

@aojea aojea Apr 23, 2024

Choose a reason for hiding this comment

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

also nfq needs to register the hooks that depend on the controller, it should be done during the controller construction

@aojea
Copy link
Contributor Author

aojea commented Apr 23, 2024

this is working on ci kubernetes/kubernetes#124484

@aojea aojea merged commit 35dd163 into kubernetes-sigs:main Apr 23, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants