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

Add Terminating Condition to EndpointSlice #92968

Merged

Conversation

andrewsykim
Copy link
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
Member Author

/retest

5 similar comments
@andrewsykim
Copy link
Member Author

/retest

@andrewsykim
Copy link
Member Author

/retest

@andrewsykim
Copy link
Member Author

/retest

@andrewsykim
Copy link
Member Author

/retest

@andrewsykim
Copy link
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
Member Author

/retest

1 similar comment
@andrewsykim
Copy link
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
Member Author

/milestone v1.20
/assign @robscott

@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Jul 15, 2020
@andrewsykim
Copy link
Member Author

@robscott comments addressed, PTAL

@thockin
Copy link
Member

thockin commented Nov 2, 2020 via email

@andrewsykim
Copy link
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
Member Author

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

@k8s-ci-robot
Copy link
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.

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
Member Author

/retest

@andrewsykim
Copy link
Member Author

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

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>
Copy link
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
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

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 6, 2020
@robscott
Copy link
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.

None yet

8 participants