mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-11-20 12:31:04 +01:00
fact(NPC): pluralize newIPTablesHandler
This commit is contained in:
parent
ddb0e63c46
commit
096da81f92
@ -201,7 +201,7 @@ func (kr *KubeRouter) Run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if kr.Config.RunFirewall {
|
if kr.Config.RunFirewall {
|
||||||
iptablesCmdHandlers, ipSetHandlers, err := netpol.NewIPTablesHandler(kr.Config)
|
iptablesCmdHandlers, ipSetHandlers, err := netpol.NewIPTablesHandlers(kr.Config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("Failed to create iptables handlers: " + err.Error())
|
return errors.New("Failed to create iptables handlers: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
@ -666,7 +666,7 @@ func (npc *NetworkPolicyController) Cleanup() {
|
|||||||
klog.Infof("Successfully cleaned the NetworkPolicyController configurations done by kube-router")
|
klog.Infof("Successfully cleaned the NetworkPolicyController configurations done by kube-router")
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewIPTablesHandler(config *options.KubeRouterConfig) (
|
func NewIPTablesHandlers(config *options.KubeRouterConfig) (
|
||||||
map[v1core.IPFamily]utils.IPTablesHandler, map[v1core.IPFamily]utils.IPSetHandler, error) {
|
map[v1core.IPFamily]utils.IPTablesHandler, map[v1core.IPFamily]utils.IPSetHandler, error) {
|
||||||
iptablesCmdHandlers := make(map[v1core.IPFamily]utils.IPTablesHandler, 2)
|
iptablesCmdHandlers := make(map[v1core.IPFamily]utils.IPTablesHandler, 2)
|
||||||
ipSetHandlers := make(map[v1core.IPFamily]utils.IPSetHandler, 2)
|
ipSetHandlers := make(map[v1core.IPFamily]utils.IPSetHandler, 2)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user