Skip to content

Commit

Permalink
fix(network_policy): missed gofmt on #970
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren authored and mrueg committed Aug 26, 2020
1 parent 827ce55 commit 7cd5235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/netpol/network_policy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (npc *NetworkPolicyController) ensureTopLevelChains() {
}
if strings.Contains(rule, uuid) {
// range uses a 0 index, but iptables uses a 1 index so we need to increase ruleNo by 1
ruleNo = i+1-ruleIndexOffset
ruleNo = i + 1 - ruleIndexOffset
break
}
}
Expand Down Expand Up @@ -269,7 +269,7 @@ func (npc *NetworkPolicyController) ensureTopLevelChains() {
if err != nil {
glog.Fatalf("Failed to get uuid for rule: %s", err.Error())
}
ensureRuleAtPosition(builtinChain, args, uuid,1)
ensureRuleAtPosition(builtinChain, args, uuid, 1)
}

whitelistServiceVips := []string{"-m", "comment", "--comment", "allow traffic to cluster IP", "-d", npc.serviceClusterIPRange.String(), "-j", "RETURN"}
Expand Down

0 comments on commit 7cd5235

Please sign in to comment.