kubernetes/pkg/apis/networking
Antonio Ojea 0266d3bcb3 Allow single-to-dual-stack reconfiguration for ServiceCIDR
This change modifies the validation logic for ServiceCIDR updates
(`ValidateServiceCIDRUpdate`) to specifically permit upgrading a
single-stack ServiceCIDR (either IPv4 or IPv6) to a dual-stack
configuration.

This reconfiguration path is considered safe because it only involves adding
a new CIDR range without altering the existing primary CIDR. This
ensures that existing Service IP allocations are not disrupted.

Other modifications, such as:
- Downgrading from dual-stack to single-stack
- Reordering CIDRs in a dual-stack configuration
- Changing the primary CIDR during a single-to-dual-stack
  reconfiguration

remain disallowed by the validation. These operations carry a higher
risk of breaking existing Services or cluster networking
configurations. Preventing these updates automatically encourages
administrators to perform such changes manually after carefully
assessing the potential impact on their specific cluster environment.
The validation errors and controller logs provide guidance when such
disallowed changes are attempted.

Change-Id: I41dc09dfddb05f277925da2262f8114d6accbd1d
2025-04-14 17:05:44 +00:00
..
fuzzer Use randfill, do API renames 2025-03-08 15:18:00 -08:00
install Add IPAddress API 2023-03-14 22:56:44 +00:00
v1 make update 2025-01-20 13:01:54 +00:00
v1alpha1 remove import doc comments 2024-12-02 16:59:34 +01:00
v1beta1 remove import doc comments 2024-12-02 16:59:34 +01:00
validation Allow single-to-dual-stack reconfiguration for ServiceCIDR 2025-04-14 17:05:44 +00:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
register.go add ServiceCIDR APIs 2023-10-31 21:05:04 +00:00
types.go update ServiceCIDR API: replace IPv4,IPv6 fields by an array of strings 2023-10-31 21:05:06 +00:00
zz_generated.deepcopy.go make update with the new API with arrays 2023-10-31 21:05:58 +00:00