Skip to content

Commit d1982eb

Browse files
rbrtbnfglaauren
authored andcommitted
Added ipset.Save at the start of syncNetworkPolicyChains
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
1 parent e6d7245 commit d1982eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/controllers/netpol/policy.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ func (npc *NetworkPolicyController) syncNetworkPolicyChains(networkPoliciesInfo
9898
}
9999
}()
100100

101+
for _, ipset := range npc.ipSetHandlers {
102+
err := ipset.Save()
103+
if err != nil {
104+
return nil, nil, err
105+
}
106+
}
107+
101108
// run through all network policies
102109
for _, policy := range networkPoliciesInfo {
103110
currentPodIPs := make(map[api.IPFamily][]string)

0 commit comments

Comments
 (0)