fact(NPC): pluralize newIPTablesHandler

This commit is contained in:
Aaron U'Ren 2022-10-25 16:10:09 -05:00 committed by Aaron U'Ren
parent ddb0e63c46
commit 096da81f92
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ func (kr *KubeRouter) Run() error {
}
if kr.Config.RunFirewall {
iptablesCmdHandlers, ipSetHandlers, err := netpol.NewIPTablesHandler(kr.Config)
iptablesCmdHandlers, ipSetHandlers, err := netpol.NewIPTablesHandlers(kr.Config)
if err != nil {
return errors.New("Failed to create iptables handlers: " + err.Error())
}

View File

@ -666,7 +666,7 @@ func (npc *NetworkPolicyController) Cleanup() {
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) {
iptablesCmdHandlers := make(map[v1core.IPFamily]utils.IPTablesHandler, 2)
ipSetHandlers := make(map[v1core.IPFamily]utils.IPSetHandler, 2)