Skip to content

Add Terminating Condition to EndpointSlice#92968

Merged
k8s-ci-robot merged 7 commits intokubernetes:masterfrom
andrewsykim:endpointslice-termination
Nov 6, 2020
Merged

Add Terminating Condition to EndpointSlice#92968
k8s-ci-robot merged 7 commits intokubernetes:masterfrom
andrewsykim:endpointslice-termination

Conversation

@andrewsykim
Copy link
Copy Markdown
Member

@andrewsykim andrewsykim commented Jul 10, 2020

What type of PR is this?
/kind feature

What this PR does / why we need it:
Adds a serving and terminating condition to EndpointSlice as proposed in this KEP.

Which issue(s) this PR fixes:
https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/1672-tracking-terminating-endpoints

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Add a 'serving' and `terminating` condition to the EndpointSlice API.

`serving` tracks the readiness of endpoints regardless of their terminating state. This is distinct from `ready` since `ready` is only true when pods are not terminating. 
`terminating` is true when an endpoint is terminating. For pods this is any endpoint with a deletion timestamp.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jul 10, 2020
@k8s-ci-robot k8s-ci-robot added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/network Categorizes an issue or PR as relevant to SIG Network. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jul 10, 2020
@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

5 similar comments
@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim andrewsykim force-pushed the endpointslice-termination branch 4 times, most recently from 8d79ac2 to 9c69bca Compare July 15, 2020 16:52
@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim andrewsykim changed the title [WIP] Add Terminating Condition to EndpointSlice Add Terminating Condition to EndpointSlice Jul 15, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 15, 2020
@andrewsykim
Copy link
Copy Markdown
Member Author

/milestone v1.20
/assign @robscott

@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Jul 15, 2020
@andrewsykim andrewsykim force-pushed the endpointslice-termination branch 2 times, most recently from 4dd70c3 to 393344e Compare October 31, 2020 03:11
@andrewsykim
Copy link
Copy Markdown
Member Author

@robscott comments addressed, PTAL

@thockin
Copy link
Copy Markdown
Member

thockin commented Nov 2, 2020 via email

@andrewsykim
Copy link
Copy Markdown
Member Author

Alternative naming proposal for conditions:

  • ready = ready && !terminating
  • readiness = ready (identical to serving but more explicitly tied to pod readiness, we would have to document why we have both a Ready and Readiness condition)
  • terminating = terminating

Kinda awkward to have a ready and readiness condition, but at least readiness is more explicit about a Pod's ready condition as opposed to serving. We would have to document really well why readiness exists and how it differs from ready. Thoughts @thockin @robscott?

@andrewsykim
Copy link
Copy Markdown
Member Author

Going to update the condition name to readyTerminating based on my comment here #92968 (comment), open to other naming suggestions though.

@andrewsykim andrewsykim force-pushed the endpointslice-termination branch from 393344e to 8b1bf04 Compare November 4, 2020 16:59
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

k8s-ci-robot commented Nov 4, 2020

@andrewsykim: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kubernetes-kubemark-e2e-gce-big 14fe44aa88a2412435cb85c1f9d9dfed35a92490 link /test pull-kubernetes-kubemark-e2e-gce-big

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@andrewsykim
Copy link
Copy Markdown
Member Author

/retest

@andrewsykim
Copy link
Copy Markdown
Member Author

@thockin @robscott collapsed serving and terminating into a single conditoin readyTerminating, PTAL

@andrewsykim andrewsykim force-pushed the endpointslice-termination branch from 8b1bf04 to 630b8bb Compare November 5, 2020 18:50
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…ting'

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…minating'

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…bles

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…erminating endpoints

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
@andrewsykim andrewsykim force-pushed the endpointslice-termination branch from 630b8bb to 7cf19e5 Compare November 6, 2020 00:19
Copy link
Copy Markdown
Member

@thockin thockin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave the EPSlice logic and final LGTM to @robscott but API-wise I am OK with this.

/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewsykim, thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@robscott
Copy link
Copy Markdown
Member

robscott commented Nov 6, 2020

Thanks!

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/network Categorizes an issue or PR as relevant to SIG Network. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants