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

Inconsistent use of the term "resource" #20074

Open
MikeSpreitzer opened this issue Apr 3, 2020 · 26 comments
Open

Inconsistent use of the term "resource" #20074

MikeSpreitzer opened this issue Apr 3, 2020 · 26 comments
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. language/en Issues or PRs related to English language lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. wg/api-expression Categorizes an issue or PR as relevant to WG API Expression.

Comments

@MikeSpreitzer
Copy link
Member

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

  • A resource type is the name used in the URL (pods, namespaces, services)
  • ...
  • A single instance of the resource type is called a resource

... 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.

@MikeSpreitzer MikeSpreitzer changed the title Inconsistent use of the term "resource" in the user-facing doc Inconsistent use of the term "resource" Apr 3, 2020
@sftim
Copy link
Contributor

sftim commented Apr 3, 2020

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

sftim commented Apr 5, 2020

/kind cleanup
/priority backlog

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Apr 5, 2020
@tengqm
Copy link
Contributor

tengqm commented Jun 14, 2020

/language en

@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jun 14, 2020
@celestehorgan
Copy link
Contributor

/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.

@k8s-ci-robot k8s-ci-robot added the wg/naming Categorizes an issue or PR as relevant to WG Naming. label Aug 5, 2020
@fejta-bot
Copy link

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

@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 Nov 3, 2020
@justaugustus
Copy link
Member

/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 Nov 4, 2020
@justaugustus
Copy link
Member

/sig architecture

@k8s-ci-robot k8s-ci-robot added the sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. label Nov 4, 2020
@justaugustus
Copy link
Member

cc: @kubernetes/sig-architecture-leads

@sftim
Copy link
Contributor

sftim commented Nov 19, 2020

/triage accepted

@k8s-ci-robot k8s-ci-robot added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Nov 19, 2020
@sftim
Copy link
Contributor

sftim commented Nov 19, 2020

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

tengqm commented Nov 20, 2020

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

celestehorgan commented Feb 8, 2021

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

/remove wg-naming

@MikeSpreitzer
Copy link
Member Author

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

@fejta-bot
Copy link

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

@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 May 9, 2021
@MikeSpreitzer
Copy link
Member Author

/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 May 10, 2021
@sftim
Copy link
Contributor

sftim commented Aug 1, 2021

/wg api-expression
/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. wg/api-expression Categorizes an issue or PR as relevant to WG API Expression. labels Aug 1, 2021
@sftim
Copy link
Contributor

sftim commented Aug 1, 2021

/remove-wg naming

@k8s-ci-robot k8s-ci-robot removed the wg/naming Categorizes an issue or PR as relevant to WG Naming. label Aug 1, 2021
@sftim
Copy link
Contributor

sftim commented Oct 15, 2021

See #30092 (comment) for a specific suggestion.

@k8s-triage-robot
Copy link

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

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

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

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Feb 8, 2023
@tengqm
Copy link
Contributor

tengqm commented Oct 2, 2023

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

@tengqm: Closing this issue.

In response to this:

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. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sftim
Copy link
Contributor

sftim commented Oct 2, 2023

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

/reopen

@k8s-ci-robot k8s-ci-robot reopened this Oct 2, 2023
@k8s-ci-robot
Copy link
Contributor

@sftim: Reopened this issue.

In response to this:

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. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sftim
Copy link
Contributor

sftim commented Oct 2, 2023

/triage accepted
again

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 2, 2023
@k8s-triage-robot
Copy link

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

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

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

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. language/en Issues or PRs related to English language lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. wg/api-expression Categorizes an issue or PR as relevant to WG API Expression.
Projects
None yet
Development

No branches or pull requests

8 participants