Skip to content

Commit

Permalink
Added ipset.Save at the start of syncNetworkPolicyChains
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Bonafiglia <[email protected]>
  • Loading branch information
rbrtbnfgl committed Jan 30, 2025
1 parent 4a2537b commit 94898d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/controllers/netpol/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ func (npc *NetworkPolicyController) syncNetworkPolicyChains(networkPoliciesInfo
}
}()

for _, ipset := range npc.ipSetHandlers {
err := ipset.Save()
if err != nil {
return nil, nil, err
}
}

// run through all network policies
for _, policy := range networkPoliciesInfo {
currentPodIPs := make(map[api.IPFamily][]string)
Expand Down

0 comments on commit 94898d1

Please sign in to comment.