k8snetworkplumbingwg / multi-networkpolicy-iptables

MultiNetworkPolicy iptable based implementation
Apache License 2.0
13 stars 19 forks source link

IPv6 Support #27

Closed zeeke closed 1 year ago

zeeke commented 1 year ago

This PR fixes issue https://github.com/k8snetworkplumbingwg/multi-networkpolicy-iptables/issues/22 .

It leverage commits from (not mandatory but strongly encouraged)

Changes mostly consist of calling iptableBuffer twice, once for IPv4 and one for IPv6.

I think it's also time to refactor the complexity of iptableBuffer.renderIngressFrom(...) and iptableBuffer.renderEgressTo(...), but we can also get it in a different PR.

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 2910989139


Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/server/policyrules.go 70 71 98.59%
pkg/server/server.go 0 29 0.0%
<!-- Total: 70 100 70.0% -->
Files with Coverage Reduction New Missed Lines %
pkg/server/server.go 1 2.64%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 2820429741: 0.4%
Covered Lines: 892
Relevant Lines: 1761

💛 - Coveralls
zeeke commented 1 year ago

As discussed offline, I split e2e testing part in another branch, to keep the review focusing on production code.

zeeke commented 1 year ago

Hi, I removed the code related to #26. thank you for reviewing