kilo/pkg/iptables
Lucas Servén Marín 9b19bbe69c
pkg/iptables: remove nil rules from list on error
Previously, when `deleteFromIndex` exited early due to an error, nil
rules would be left in the controller's list of rules, which could
provoke a panic on the next reconciliation. This commit ensures that nil
rules are removed before an early exit.

Fixes: #51

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2020-05-11 22:50:01 +02:00
..
fake.go pkg/iptables: enable simultaneous ipv4 and ipv6 2020-03-12 16:07:48 +01:00
iptables_test.go pkg/iptables: enable simultaneous ipv4 and ipv6 2020-03-12 16:07:48 +01:00
iptables.go pkg/iptables: remove nil rules from list on error 2020-05-11 22:50:01 +02:00