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

docs: service.kubernetes.io/topology-aware-hints #38997

Conversation

sergeyshevch
Copy link
Member

Fixes: #36830

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 19, 2023
@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. labels Jan 19, 2023
@sergeyshevch sergeyshevch force-pushed the feature/topology-aware-hints-well-known-label branch 2 times, most recently from dcb356d to 09b19ba Compare January 19, 2023 14:19
@netlify
Copy link

netlify bot commented Jan 19, 2023

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 4b2fe55
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/63c9514c70d4770009337e3c
😎 Deploy Preview https://deploy-preview-38997--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 19, 2023

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit ca5dc47
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/64d4e6e6d074e90008a12147
😎 Deploy Preview https://deploy-preview-38997--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 20, 2023
@kbhawkey
Copy link
Contributor

@kubernetes/sig-network-misc , Do you have time to review the changes?

@k8s-ci-robot k8s-ci-robot added the sig/network Categorizes an issue or PR as relevant to SIG Network. label Feb 26, 2023
@reylejano
Copy link
Member

reylejano commented Apr 4, 2023

If this PR is open after the 1.27 release is out (scheduled for April 11, one week from the time of this comment), this annotation needs confirmation from SIG Network as there is a name change from Topology Aware Hints to Topology Aware Routing in 1.27

@sergeyshevch
Copy link
Member Author

@reylejano For now we waiting for SIG Network review. If it will be available after 1.27 freeze, I will change naming

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 19, 2023
@sergeyshevch
Copy link
Member Author

@sftim Can we review it in any way?

Copy link
Member

@robscott robscott left a comment

Choose a reason for hiding this comment

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

Thanks @sergeyshevch! Left some recommended changes to capture the latest updates to the KEP.

@@ -395,6 +395,19 @@ Used on: Service

The control plane adds this label to an Endpoints object when the owning Service is headless.

### service.kubernetes.io/topology-aware-hints {#servicekubernetesiotopology-aware-hints}
Copy link
Member

Choose a reason for hiding this comment

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

Please use the updated terminology throughout:

  1. The annotation should be service.kubernetes.io/topology-mode
  2. The hints annotation is deprecated
  3. The value should be "Auto" (note the capitalization)
  4. Links should go to https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/
  5. Domain-prefixed values are supported for custom/implementation-specific values per https://github.com/kubernetes/kubernetes/blob/99190634ab252604a4496882912ac328542d649d/staging/src/k8s.io/api/core/v1/annotation_key_constants.go#L154-L161

Copy link
Contributor

Choose a reason for hiding this comment

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

In this PR, we're documenting service.kubernetes.io/topology-aware-hints @robscott, as a fix for #36830.
Please review this as a PR to belatedly register and document service.kubernetes.io/topology-aware-hints.

PRs to document service.kubernetes.io/topology-mode are also welcome; I know that this is undocumented as of right now. Anyone is welcome to open a PR that documents the new annotation.

Copy link
Member

Choose a reason for hiding this comment

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

service.kubernetes.io/topology-aware-hints was replaced by service.kubernetes.io/topology-mode, any reason we should document the old annotation? For reference, any use of the hints annotation will return a warning pointing to the new annotation: https://github.com/kubernetes/kubernetes/blob/99190634ab252604a4496882912ac328542d649d/pkg/api/service/warnings.go#L34

Copy link
Contributor

Choose a reason for hiding this comment

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

We register (and document) all the annotations that we've ever used in official released code. Even if using them returns a warning, they should still be registered.

Copy link
Contributor

Choose a reason for hiding this comment

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

(if we don't do that, we won't resolve issue #36830)

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

Based on feedback so far on the PR.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 2, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1cc0fe5e5c9acac597bc026a2342daf6f2804ab5

@divya-mohan0209
Copy link
Contributor

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 8, 2023
@divya-mohan0209
Copy link
Contributor

@robscott : Please would you be able to provide feedback from a technical POV and see if this is all okay to merge?

@natalisucks
Copy link
Contributor

@sergeyshevch While we wait for another tech review to make sure we can move forward, would you mind pushing an empty commit due to the checks failing? This should help kickstart them so we can eventually merge – thanks!

@sergeyshevch
Copy link
Member Author

@natalisucks Sure. Will make it tomorrow

@robscott
Copy link
Member

robscott commented Aug 9, 2023

As I commented above, I'd personally rather document the current annotation instead of (or at least before) the deprecated annotation since I think this could lead to confusion. This does look like correct documentation for the deprecated annotation, so LGTM for sig-network.

@sftim
Copy link
Contributor

sftim commented Aug 9, 2023

As I commented above, I'd personally rather document the current annotation instead of (or at least before) the deprecated annotation since I think this could lead to confusion.

The best time to document annotations is before / as we start to use them. The second best time - in my view - is now. Please do feel free to document the missing newer annotation. PRs to fix gaps like that are always welcome.


@sergeyshevch please try rebasing this against main from upstream. Your base branch is fairly stale (and Netlify doesn't automate testing against a simulated merge).

@sergeyshevch sergeyshevch force-pushed the feature/topology-aware-hints-well-known-label branch from 87f4d88 to ca5dc47 Compare August 10, 2023 13:32
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2023
@k8s-ci-robot k8s-ci-robot requested a review from sftim August 10, 2023 13:32
@sergeyshevch
Copy link
Member Author

Rebased on actual main

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

Thanks

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 11, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 4549763100282e1d410633d5c9bfe5c5af097719

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sftim

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 Aug 11, 2023
@k8s-ci-robot k8s-ci-robot merged commit be0301a into kubernetes:main Aug 11, 2023
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. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. sig/network Categorizes an issue or PR as relevant to SIG Network. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Annotation service.kubernetes.io/topology-aware-hints not registered
9 participants