Skip to content

Commit

Permalink
sync pods if updating policy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchun committed Dec 2, 2019
1 parent ec3fc05 commit e3878a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/policy/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (p *PolicyManager) AddPolicy(policy *networkv1.NetworkPolicy) error {
func (p *PolicyManager) UpdatePolicy(oldPolicy, newPolicy *networkv1.NetworkPolicy) error {
p.syncNetworkPolices()
p.syncNetworkPolicyRules()
p.syncPods()
return nil
}

Expand Down

0 comments on commit e3878a7

Please sign in to comment.