kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.5k stars 14.45k forks source link

Inconsistent use of the term "resource" #20074

Open MikeSpreitzer opened 4 years ago

MikeSpreitzer commented 4 years ago

This is a Bug Report

Problem: The term "resource" is used in inconsistent ways in the user-facing documentation and some prominent usages diverge from the common usage in the code. Sometimes "resource" is used like an object type or collection and sometimes it refers to an individual. This would not be so bad if the doc and code stuck to the usual web convention that a "resource" is anything that a URL locates, but the Kubernetes code and doc takes more particular stands --- but different ones in different places.

For example, https://kubernetes.io/docs/reference/using-api/api-concepts/#standard-api-terminology says

... and yet the introductory paragraph of that section contradicts itself in the parenthetic reference to "the subjectaccessreviews resource".

https://kubernetes.io/docs/reference/using-api/api-overview/#enabling-specific-resources-in-the-extensions-v1beta1-group also uses the term "resource" in the sense of a type rather than an instance.

In the code the predominant usage of the word "resource" is to refer to the type rather than the instance. For example, see https://github.com/kubernetes/apimachinery/blob/master/pkg/runtime/schema/group_version.go .

Proposed Solution: Either adopt a consistent usage throughout or explicitly give up.

Page to Update: Most of them.

sftim commented 4 years ago

In the code the predominant usage of the word "resource" is to refer to the type rather than the instance.

That's also what I'd pick to put in documentation. In fact, it could even be a glossary entry: “In Kubernetes, a resource is…”

sftim commented 4 years ago

/kind cleanup /priority backlog

tengqm commented 4 years ago

/language en

celestehorgan commented 4 years ago

/wg naming

@kubernetes/wg-naming-leads I'm adding this to the backlog as lowest priority, as it is technically an naming/terminology issue? However it'll be at the bottom of the backlog.

fejta-bot commented 4 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

justaugustus commented 4 years ago

/remove-lifecycle stale

justaugustus commented 4 years ago

/sig architecture

justaugustus commented 4 years ago

cc: @kubernetes/sig-architecture-leads

sftim commented 4 years ago

/triage accepted

sftim commented 4 years ago

The other big use of resources is to describe the things that limits and requests are limiting and / or requesting.

We might not be able to avoid using the same English word to mean different things in different places, but we can call out when it might not be clear.

tengqm commented 4 years ago

We might not be able to avoid using the same English word to mean different things in different places, but we can call out when it might not be clear.

In Chinese, a "resource" is always a "资源", difficult to differentiate too.

celestehorgan commented 3 years ago

Hi all,

We've taken a look at this issue in the most recent WG naming meeting.

We don't think there's an issue of language/inclusivity that needs to be addressed in this issue, so I'm going to remove the wg-naming tag.

However, as a writer, there is definitely a developer style guide issue at play here, which would be useful to talk about in the next SIG Docs meeting

celestehorgan commented 3 years ago

/remove wg-naming

MikeSpreitzer commented 3 years ago

And remember this is an issue not only for developers of the code, there is also the user-facing documentation.

fejta-bot commented 3 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale

MikeSpreitzer commented 3 years ago

/remove-lifecycle stale

sftim commented 3 years ago

/wg api-expression /lifecycle frozen

sftim commented 3 years ago

/remove-wg naming

sftim commented 3 years ago

See https://github.com/kubernetes/website/issues/30092#issue-1026887646 for a specific suggestion.

k8s-triage-robot commented 1 year ago

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

tengqm commented 1 year ago

With the glossary entry PR merged, I think we can close this one. There could be an endless discussion about the definition of "resource" and that discussion may lead us to nowhere. A term has its semantics in a context without which it is always ambiguous.

I'm closing this one as completed. Feel free to reopen it if there are practical ideas to improve it. /close

k8s-ci-robot commented 1 year ago

@tengqm: Closing this issue.

In response to [this](https://github.com/kubernetes/website/issues/20074#issuecomment-1742427746): >With the glossary entry PR merged, I think we can close this one. >There could be an endless discussion about the definition of "resource" and that discussion may lead us to nowhere. A term has its semantics in a context without which it is always ambiguous. > >I'm closing this one as completed. >Feel free to reopen it if there are practical ideas to improve it. >/close > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
sftim commented 1 year ago

There's no entry for “resource” in https://kubernetes.io/docs/reference/glossary/?all=true

/reopen

k8s-ci-robot commented 1 year ago

@sftim: Reopened this issue.

In response to [this](https://github.com/kubernetes/website/issues/20074#issuecomment-1742777382): >There's no entry for “resource” in https://kubernetes.io/docs/reference/glossary/?all=true > >/reopen Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
sftim commented 1 year ago

/triage accepted again

k8s-triage-robot commented 1 month ago

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted