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

fix: Fix incorrect feature state in Topology Aware hints page #36828

Conversation

sergeyshevch
Copy link
Member

Ref: #36825
Fixed Incorrect feature state in Topology Aware hints documentation.

I'm currently unsure, maybe it will be better to completely remove this note or make enabled word not bold. Which style will be preferable in this case?

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 15, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @sergeyshevch!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 15, 2022
@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 Sep 15, 2022
@sergeyshevch
Copy link
Member Author

@mehabhalodiya @robscott
Please note that it also needs to be backported to 1.24 docs.
More info in related issue

Comment on lines 22 to 25
{{< note >}}
The "topology-aware hints" feature is at Beta stage and it is **NOT** enabled
by default. To try out this feature, you have to enable the `TopologyAwareHints`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
The "topology-aware hints" feature is at Beta stage, and it is **ENABLED**
by default.
{{< /note >}}
Copy link
Contributor

@sftim sftim Sep 15, 2022

Choose a reason for hiding this comment

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

Suggested change
{{< note >}}
The "topology-aware hints" feature is at Beta stage and it is **NOT** enabled
by default. To try out this feature, you have to enable the `TopologyAwareHints`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
The "topology-aware hints" feature is at Beta stage, and it is **ENABLED**
by default.
{{< /note >}}

I'd omit the entire note. Alternatively, focus the note on what people should do if they are running Kubernetes v1.23 or earlier; my usual advice is “switch to the same page in the documentation for your actual Kubernetes version” (there is a version picker top-right).

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated and force pushed

@netlify
Copy link

netlify bot commented Sep 15, 2022

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 259239f
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/632309f26589690008455e9f
😎 Deploy Preview https://deploy-preview-36828--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.

@sergeyshevch sergeyshevch force-pushed the fix/36825/topology-aware-fints-incorrect-state branch from 1a462d7 to 259239f Compare September 15, 2022 11:18
@sergeyshevch sergeyshevch requested review from sftim and removed request for robscott and mehabhalodiya September 15, 2022 11:19
Comment on lines -22 to -26
{{< note >}}
The "topology-aware hints" feature is at Beta stage and it is **NOT** enabled
by default. To try out this feature, you have to enable the `TopologyAwareHints`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
{{< /note >}}
Copy link
Member

Choose a reason for hiding this comment

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

Not sure what the standard is here, but maybe we should clarify that the feature graduated to beta in 1.23 and the feature gate was enabled by default on 1.24+. Note that even when the feature gate is enabled, users still need to set the annotation to enable the feature on a Service.

Copy link
Contributor

Choose a reason for hiding this comment

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

The shortcode we have doesn't capture a separate “enabled by default from release” value. Something we could add, or track as an enhancement.

Copy link
Member Author

Choose a reason for hiding this comment

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

@robscott I guess information about annotation should be added here #36830
@sftim I can also make PR to fix this

Copy link
Member Author

Choose a reason for hiding this comment

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

About “enabled by default from release”
I guess that it is very useful information. But it should be tracked separately (I also will be happy to work on it)

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.

After this change, the website is less wrong. It's progress!

/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 Sep 15, 2022
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: df7c22c77859a47a50124f315c39f74d241a46b8

@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 Sep 15, 2022
@k8s-ci-robot k8s-ci-robot merged commit 70d3156 into kubernetes:main Sep 15, 2022
@sergeyshevch
Copy link
Member Author

@sftim Can you proceed with backporting this to 1.24? Or there are something that should be done from my side

@sergeyshevch sergeyshevch deleted the fix/36825/topology-aware-fints-incorrect-state branch September 15, 2022 17:12
@robscott
Copy link
Member

I think we also have to be very careful about the "enabled by default" terminology here. Although the feature gate is enabled by default, that just allows you to opt-in Services with an annotation. Users may get confused that "enabled by default" could mean the feature is enabled on all Services by default starting in 1.24. I think there may be other features with this same pattern.

@sergeyshevch
Copy link
Member Author

sergeyshevch commented Sep 15, 2022

@robscott I guess its clearly described on https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#using-topology-aware-hints section

You can activate Topology Aware Hints for a Service by setting the service.kubernetes.io/topology-aware-hints annotation to auto.

But we also we can add more examples here

@sftim
Copy link
Contributor

sftim commented Sep 15, 2022

backports

Our policy given the number and mean age of issues against main is only to backport high-priority fixes. We'll consider review but it's not something that SIG Docs would particularly staff.

@sergeyshevch
Copy link
Member Author

sergeyshevch commented Sep 15, 2022

For now, it's really unclear about this feature gate enablement. So I guess that backporting this to the 1.24 version can be really useful. At least for managed k8s users.

I hope that we will get 1.24 by end of the year. But the release cycle of managed k8s is really delayed against k8s upstream.

If it will be additional work for you, you can just give something like a guide and I will make it

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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants