fix: free ips from usedIps ipset on DeleteNode

This commit is contained in:
Andrey Bobelev
2025-10-28 11:19:14 +02:00
committed by Kristoffer Dalby
parent 6d24afba1c
commit 299cef4e99
2 changed files with 11 additions and 0 deletions

View File

@@ -429,6 +429,8 @@ func (s *State) DeleteNode(node types.NodeView) (change.ChangeSet, error) {
return change.EmptySet, err
}
s.ipAlloc.FreeIPs(node.IPs())
c := change.NodeRemoved(node.ID())
// Check if policy manager needs updating after node deletion