Make kube-proxy check if IPv6 is really supported before assuming dual-stack

This commit is contained in:
Dan Winship
2021-02-16 12:33:18 -05:00
parent 0ce2036e81
commit 95c6a488d8
4 changed files with 56 additions and 39 deletions

View File

@@ -93,6 +93,11 @@ func (*FakeIPTables) DeleteChain(table iptables.Table, chain iptables.Chain) err
return nil
}
// ChainExists is part of iptables.Interface
func (*FakeIPTables) ChainExists(table iptables.Table, chain iptables.Chain) (bool, error) {
return true, nil
}
// EnsureRule is part of iptables.Interface
func (*FakeIPTables) EnsureRule(position iptables.RulePosition, table iptables.Table, chain iptables.Chain, args ...string) (bool, error) {
return true, nil