kubernetes/pkg/controlplane
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
..
apiserver updating to reflect latest KEP design 2025-03-20 20:19:53 +00:00
controller Allow single-to-dual-stack reconfiguration for ServiceCIDR 2025-04-14 17:05:44 +00:00
reconcilers refactor: add delete options for Delete method in storage interface 2024-10-08 10:45:15 -04:00
storageversionhashdata update kube-apiserver 2025-01-20 13:01:53 +00:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
import_known_versions.go feat: implements Storage Version Migration API in-tree 2024-03-08 04:18:56 +00:00
import_known_versions_test.go add field and label selectors to authorization attributes 2024-07-19 15:06:47 -04:00
instance.go Add resource v1beta2 API 2025-03-26 14:41:09 +00:00
instance_test.go DRA: AdminAccess validate based on namespace label 2025-03-18 22:56:54 -07:00
OWNERS Use emeritus_* 2024-08-22 17:48:27 -04:00