Skip to content

Commit

Permalink
fix: allow traffic to gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Dec 12, 2020
1 parent 03d7e9c commit 56774aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/network_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (c *Controller) handleUpdateNp(key string) error {
return err
}

allows := []string{}
allows := []string{subnet.Spec.Gateway}
excepts := []string{}
for _, npr := range np.Spec.Ingress {
if len(np.Spec.Ingress) == 0 {
Expand Down Expand Up @@ -283,7 +283,7 @@ func (c *Controller) handleUpdateNp(key string) error {
return err
}

allows := []string{}
allows := []string{subnet.Spec.Gateway}
excepts := []string{}
for _, npr := range np.Spec.Egress {
if len(npr.To) == 0 {
Expand Down

0 comments on commit 56774aa

Please sign in to comment.