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

Added watch to glossary #47067

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ritikaa96
Copy link
Contributor

Fixes: #47015
Added watch to glossary.

Signed-off-by: Ritikaa96 <[email protected]>
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign princesso for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 language/en Issues or PRs related to English language label Jul 2, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 2, 2024
@Ritikaa96
Copy link
Contributor Author

/kind feature
/wg api-expression

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. wg/api-expression Categorizes an issue or PR as relevant to WG API Expression. labels Jul 2, 2024
@Ritikaa96
Copy link
Contributor Author

I'll add the Usage in the second commit to keep the changes seperate.

Copy link

netlify bot commented Jul 2, 2024

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 530c394
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6686b3e84d5a9900087e0703
😎 Deploy Preview https://deploy-preview-47067--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.

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. Watches are however not objects.

aka:
tags:
- core-object
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- core-object

Watches are verbs, not objects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! yes . thanks for the correction.


<!--more-->

A verb that is used to track changes to an object in Kubernetes as a stream. It is used for the excellent detection of changes when this request is made to Kubernetes API or when HTTP GET request is made with watch query.
Copy link
Contributor

Choose a reason for hiding this comment

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

(optionally)

Suggested change
A verb that is used to track changes to an object in Kubernetes as a stream. It is used for the excellent detection of changes when this request is made to Kubernetes API or when HTTP GET request is made with watch query.
A verb that is used to track changes to an object in Kubernetes as a stream. Watches allow
efficient detection of changes; for example, a
{{< glossary_tooltip term_id="controller" text="controller">}} that needs to know whenever a
ConfigMap has changed can use a watch rather than polling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess an example will be beneficial. Thanks , I'll incorporate the changes.

@sftim
Copy link
Contributor

sftim commented Jul 3, 2024

Feel free to add another commit that makes an example use of this term.

@Ritikaa96
Copy link
Contributor Author

Feel free to add another commit that makes an example use of this term.

The most i have seen watch being used as a term in sentences is in API-Concepts page. In others it is in code-blocks etc. Just wanted to know is there any other page i need to make an edit with the glossary tooltip usage?

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 4, 2024
@Ritikaa96
Copy link
Contributor Author

Hi @sftim PTAL i added some changes and the examples for using it also.

@Ritikaa96
Copy link
Contributor Author

I have added the example use for the first occurrence of watch in every page. Hope that this help.

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.

/lgtm

Definitely OK to merge as-is.
I have tweaks to suggest.

@@ -61,7 +61,7 @@ Kubernetes reviews only the following API request attributes:
* **extra** - A map of arbitrary string keys to string values, provided by the authentication layer.
* **API** - Indicates whether the request is for an API resource.
* **Request path** - Path to miscellaneous non-resource endpoints like `/api` or `/healthz`.
* **API request verb** - API verbs like `get`, `list`, `create`, `update`, `patch`, `watch`, `delete`, and `deletecollection` are used for resource requests. To determine the request verb for a resource API endpoint, see [request verbs and authorization](/docs/reference/access-authn-authz/authorization/#determine-the-request-verb).
* **API request verb** - API verbs like `get`, `list`, `create`, `update`, `patch`, `{{< glossary_tooltip text="watch" term_id="watch" >}}`, `delete`, and `deletecollection` are used for resource requests. To determine the request verb for a resource API endpoint, see [request verbs and authorization](/docs/reference/access-authn-authz/authorization/#determine-the-request-verb).
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't use the tooltip here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted. Thanks for the review.

@@ -813,7 +813,7 @@ apply multiple fixes in between pausing and resuming without triggering unnecess
```
deployment.apps/nginx-deployment resumed
```
* Watch the status of the rollout until it's done.
* {{< glossary_tooltip text="Watch" term_id="watch" >}} the status of the rollout until it's done.
```shell
kubectl get rs -w
Copy link
Contributor

Choose a reason for hiding this comment

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

(nit / optional extra)

Suggested change
kubectl get rs -w
kubectl get rs --watch

@@ -19,7 +19,7 @@ fine grained authorization (such as separate views for Pod details and
log retrievals), and can accept and serve those resources in different
representations for convenience or efficiency.

Kubernetes supports efficient change notifications on resources via *watches*.
Kubernetes supports efficient change notifications on resources via *{{< glossary_tooltip text="watches" term_id="watch" >}}*.
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use the glossary definition here:

Suggested change
Kubernetes supports efficient change notifications on resources via *{{< glossary_tooltip text="watches" term_id="watch" >}}*.
Kubernetes supports efficient change notifications on resources via
_watches_:
{{< glossary_definition prepend="in the Kubernetes API, watch is an" term_id="watch" length="short" >}}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright. I'll add this.

@@ -406,7 +406,7 @@ the bundle with their own arbitrary but stable ordering.
ClusterTrustBundle objects should be considered world-readable within the
cluster. If your cluster uses [RBAC](/docs/reference/access-authn-authz/rbac/)
authorization, all ServiceAccounts have a default grant that allows them to
**get**, **list**, and **watch** all ClusterTrustBundle objects.
**get**, **list**, and **{{< glossary_tooltip text="watch" term_id="watch" >}}** all ClusterTrustBundle objects.
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't use the tooltip here; it will make the verb look different from others and that may confuse readers more than it helps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah.. ok . Noted

@@ -201,7 +201,7 @@ For example: `partition in (customerA, customerB),environment!=qa`.

### LIST and WATCH filtering

LIST and WATCH operations may specify label selectors to filter the sets of objects
LIST and {{< glossary_tooltip text="WATCH" term_id="watch" >}} operations may specify label selectors to filter the sets of objects
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
LIST and {{< glossary_tooltip text="WATCH" term_id="watch" >}} operations may specify label selectors to filter the sets of objects
For **list** and **watch** operations, you can specify label selectors to filter the sets of objects

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok . I'll remove the glossary tooltip from here as well.

@@ -201,7 +201,7 @@ For example: `partition in (customerA, customerB),environment!=qa`.

### LIST and WATCH filtering

LIST and WATCH operations may specify label selectors to filter the sets of objects
LIST and {{< glossary_tooltip text="WATCH" term_id="watch" >}} operations may specify label selectors to filter the sets of objects
returned using a query parameter. Both requirements are permitted
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
returned using a query parameter. Both requirements are permitted
returned; you specify the filter using a query parameter.
(To learn in detail about watches in Kubernetes, read
[efficient detection of changes](/docs/reference/using-api/api-concepts/#efficient-detection-of-changes)).
Both kinds of requirement are permitted

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

LGTM label has been added.

Git tree hash: dc3b6ba8c8845275e4bbfb41590b976cd8756143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. wg/api-expression Categorizes an issue or PR as relevant to WG API Expression.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add “watch” to glossary
3 participants