Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KEP 1880: graduation to GA #4983

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions keps/prod-readiness/sig-network/1880.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ kep-number: 1880
alpha:
approver: "@johnbelamaric"
beta:
approver: "@soltysh"
stable:
approver: "@soltysh"
25 changes: 4 additions & 21 deletions keps/sig-network/1880-multiple-service-cidrs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ capacity.
To simplify the model, make it backwards compatible and to avoid that it can evolve into something
different and collide with other APIs, like Gateway APIs, we are adding the following constraints:

- a ServiceCIDR will be immutable after creation (to be revisited before Beta).
- a ServiceCIDR will be immutable after creation.
- a ServiceCIDR can only be deleted if there are no Service IP associated to it (enforced by finalizer).
- there can be overlapping ServiceCIDRs.
- the apiserver will periodically ensure that a "default" ServiceCIDR exists to cover the service CIDR flags
Expand Down Expand Up @@ -403,20 +403,6 @@ until it verifies that the consumer associated to that IP has been deleted too.
The IPAddress will be deleted and an event generated if the controller determines that the IPAddress
is orphan [(see Allocator section)](#allocator)

- IPAddress referencing recreated Object (different UID)

1. User created Gateway "foo"
2. Gateway controller allocated IP and ref -> "foo"
3. User deleted gateway "foo"
4. Gateway controller doesn't delete the IP (leave it for GC)
5. User creates a new Gateway "foo"
6. apiserver repair loop finds the IP with a valid ref to "foo"

If the new gateway is created before the apiserver observes the delete, apiserver will find that gateway "foo"
still exists and can't release the IP. It can't peek inside "foo" to see if that is the right IP because it is
a type it does not know. If it knew the UID it could see that "foo" UID was different and release the IP.
The IPAddress will use the UID to reference the parent to avoid problems in this scenario.

#### Resizing Service IP Ranges

One of the most common problems users may have is how to scale up or scale down their Service CIDRs.
Expand Down Expand Up @@ -496,10 +482,6 @@ type ParentReference struct {
Namespace string
// Name is the name of the referent
Name string
// UID is the uid of the referent
UID string
}

```

#### Allocator
Expand Down Expand Up @@ -603,6 +585,8 @@ Files:
- test/integration/servicecidr/allocator_test.go
- test/integration/servicecidr/migration_test.go
- test/integration/servicecidr/servicecidr_test.go
- test/integration/servicecidr/feature_enable_disable_test.go
- test/integration/servicecidr/perf_test.go

##### e2e tests

Expand Down Expand Up @@ -697,7 +681,7 @@ it will be safe to disable the dual-write mode.
| 1.31 | Beta off | Alpha off |
| 1.32 | Beta on | Alpha off |
| 1.33 | GA on | Beta off |
| 1.34 | GA (there are no bitmaps running) | GA on (also delete old bitmap)|
| 1.34 | GA (there are no bitmaps running) | GA (also delete old bitmap)|
| 1.35 | remove feature gate | remove feature gate |

## Production Readiness Review Questionnaire
Expand Down Expand Up @@ -786,7 +770,6 @@ test/integration/servicecidr/allocator_test.go TestMigrateService
2. start an apiserver with the new feature enable
3. the reconciler must detect this stored service and create the corresponding IPAddress

To be added in Beta https://github.com/kubernetes/kubernetes/pull/122047
test/integration/servicecidr/feature_enable_disable.go TestEnableDisableServiceCIDR
1. start apiserver with the feature disabled
2. create new services and assert are correct
Expand Down
6 changes: 3 additions & 3 deletions keps/sig-network/1880-multiple-service-cidrs/kep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ see-also:
replaces:

# The target maturity stage in the current dev cycle for this KEP.
stage: beta
stage: stable

# The most recent milestone for which work toward delivery of this KEP has been
# done. This can be the current (upcoming) milestone, if it is being actively
# worked on.
latest-milestone: "v1.31"
latest-milestone: "v1.33"

# The milestone at which this feature was, or is targeted to be, at each stage.
milestone:
alpha: "v1.27"
beta: "v1.31"
stable:
stable: "v1.33"

# The following PRR answers are required at alpha release
# List the feature gate name and the components for which it must be enabled
Expand Down