Commit Graph

3 Commits

Author SHA1 Message Date
Antonio Ojea
ea99593fa1 Fix panic on ClusterIP allocation for /28 subnets
The ClusterIP allocator tries to reserve on part of the ServiceCIDR
to allocate static IPs to the Services.

The heuristic of the allocator to obtain the offset was taking into
account the whole range size, not the IPs available in the range, the
subnet address and the broadcast address for IPv4 are not available.

This caused that for CIDRs with 16 hosts, /28 for IPv4 and /124 for
IPv6, the offset calculated was higher than the max number of available
addresses on the allocator, causing this to panic.

Change-Id: I6c6f527b0a600b3612be37769e405b8fb3dd33a8
2023-01-25 20:32:40 +00:00
Wojciech Tyczyński
e5ec28ff86 Clean shutdown of network integration tests 2022-06-06 20:33:20 +02:00
Antonio Ojea
7c12daed0f move repair loop interval to a constant
use Extraconfig to configure the repair interval

and add an integration test for services finalizers, and
possible races with the services repair loop.
2021-09-13 23:54:19 +02:00