Skip to content

Commit

Permalink
fix nftables e2e test
Browse files Browse the repository at this point in the history
knftables now correctly sets comments on chains so this is reflected  in the test.
  • Loading branch information
thomasferrandiz committed May 30, 2024
1 parent db7a440 commit a792033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ check_nftables() {
read -d '' POSTROUTING_RULES_WORKER << EOM
table ip flannel-ipv4 {
chain postrtg {
comment "chain to manage traffic masquerading by flannel"
type nat hook postrouting priority srcnat; policy accept;
meta mark 0x00004000 return
ip saddr ${worker_podcidr} ip daddr 10.42.0.0/16 return
Expand All @@ -336,6 +337,7 @@ EOM
read -r -d '' POSTROUTING_RULES_LEADER << EOM
table ip flannel-ipv4 {
chain postrtg {
comment "chain to manage traffic masquerading by flannel"
type nat hook postrouting priority srcnat; policy accept;
meta mark 0x00004000 return
ip saddr ${leader_podcidr} ip daddr 10.42.0.0/16 return
Expand All @@ -349,6 +351,7 @@ EOM
read -r -d '' FORWARD_RULES << EOM
table ip flannel-ipv4 {
chain forward {
comment "chain to accept flannel traffic"
type filter hook forward priority filter; policy accept;
ip saddr 10.42.0.0/16 accept
ip daddr 10.42.0.0/16 accept
Expand Down

0 comments on commit a792033

Please sign in to comment.