From c8f7daf7ce9fff3c1ae3d70a8c87de6b2d881b91 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Mon, 28 Jun 2021 00:30:58 +0530 Subject: [PATCH] fix lint errors --- pkg/controllers/netpol/network_policy_controller.go | 2 +- pkg/controllers/netpol/pod.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controllers/netpol/network_policy_controller.go b/pkg/controllers/netpol/network_policy_controller.go index a3a29233..d523ab68 100644 --- a/pkg/controllers/netpol/network_policy_controller.go +++ b/pkg/controllers/netpol/network_policy_controller.go @@ -387,7 +387,7 @@ func (npc *NetworkPolicyController) ensureTopLevelChains() { // for the traffic to/from the local pod's let network policy controller be // authoritative entity to ACCEPT the traffic if it complies to network policies for _, chain := range chains { - comment := "rule to explictly ACCEPT traffic that comply to network policies" + comment := "rule to explicitly ACCEPT traffic that comply to network policies" args := []string{"-m", "comment", "--comment", comment, "-m", "mark", "--mark", "0x20000/0x20000", "-j", "ACCEPT"} err = iptablesCmdHandler.AppendUnique("filter", chain, args...) if err != nil { diff --git a/pkg/controllers/netpol/pod.go b/pkg/controllers/netpol/pod.go index abbc19bf..ef7892ef 100644 --- a/pkg/controllers/netpol/pod.go +++ b/pkg/controllers/netpol/pod.go @@ -126,7 +126,7 @@ func (npc *NetworkPolicyController) syncPodFirewallChains(networkPoliciesInfo [] } // set mark to indicate traffic from/to the pod passed network policies. - // Mark will be checked to explictly ACCEPT the traffic + // Mark will be checked to explicitly ACCEPT the traffic comment := "\"set mark to ACCEPT traffic that comply to network policies\"" args := []string{"-A", podFwChainName, "-m", "comment", "--comment", comment, "-j", "MARK", "--set-mark", "0x20000/0x20000", "\n"} npc.filterTableRules.WriteString(strings.Join(args, " "))