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

Add formal definition of workloads #11302

Merged
merged 4 commits into from
Apr 19, 2019
Merged

Add formal definition of workloads #11302

merged 4 commits into from
Apr 19, 2019

Conversation

RA489
Copy link

@RA489 RA489 commented Nov 26, 2018

Adding the formal definition of workloads
fixes #11285

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. language/en Issues or PRs related to English language cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 26, 2018
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Nov 26, 2018

Deploy preview for kubernetes-io-master-staging ready!

Built with commit b42c246

https://deploy-preview-11302--kubernetes-io-master-staging.netlify.com

Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

The issue is a good catch, but this isn't quite the right solution. A better place for this definition is in the glossary, as the comment in the original issue suggests. In its present proposed location, it lays out oddly on the page, and duplicates material better explained elsewhere in the concepts section.

When you create the glossary entry, consider also editing the language a bit. Workloads themselves aren't K8s objects -- "workload" is a framing term to refer to a set of APIs/resources/objects, but it's not in and of itself an object. The top-level concept topic does a good job of referring to workloads in this more abstract way -- you might get some ideas from it.

@Bradamant3 Bradamant3 removed the request for review from Rajakavitha1 November 28, 2018 13:37
@Bradamant3
Copy link
Contributor

/hold
/assign

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 28, 2018
@zparnold
Copy link
Member

@RA489 What do you think of @Bradamant3 's suggestions? We appreciate the contribution and definitely want to include it!

@RA489
Copy link
Author

RA489 commented Feb 13, 2019

@zparnold sure, i will include it

@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 Feb 13, 2019
@RA489
Copy link
Author

RA489 commented Feb 14, 2019

@Bradamant3 @zparnold updated as per suggestion. PTAL

@Rajakavitha1
Copy link
Contributor

@Bradamant3 could you please take a look at the updates made to this PR.

@RA489
Copy link
Author

RA489 commented Feb 22, 2019

@zparnold @Bradamant3 could you please review this PR.

Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

@RA489 apologies for the tardy re-review, especially since a fair amount still needs to be fixed. This isn't easy stuff to write about -- thank you for tackling it, and I'll do my best to stay on top of additional commits.

content/en/docs/reference/glossary/workload.md Outdated Show resolved Hide resolved
short_description: >
A set of applications for processing information to serve a purpose that is valuable to a single user or group of users.
A workload is a framing term to refer to a set of APIs/resources/objects.
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I used "framing term" as a way of redirecting the conversation. It wasn't meant as the language for the glossary entry. See the API refdocs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#
And you might want to explore the language of workloads elsewhere in the docs a bit further too.

Copy link
Author

Choose a reason for hiding this comment

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

done

content/en/docs/reference/glossary/workload.md Outdated Show resolved Hide resolved
Workload is a framing term to refer to a set of APIs/resources/objects. Kubernetes performs the
deployment and updates the workload with the current state of the application. Workloads let you define the
rules for application scheduling, scaling, and upgrade.
Workloads includes the Daemon Sets, Deployments, Jobs, Pods, Replica Sets, Replication Controllers, Stateful Sets.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/includes/include
s/Daemon Sets/DaemonSet
s/Replica Sets/ReplicaSet
s/Replication Controllers/ReplicationController
s/Stateful Sets/StatefulSet

If you're going this far, suggest adding the rest of the list. Or remove the list altogether.

It's also really not true that workload objects define rules for application scheduling, etc ... yes, scheduling happens to workload objects, but this wording is misleading. (Same holds true for scaling and upgrade)

Copy link
Author

Choose a reason for hiding this comment

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

done

@RA489
Copy link
Author

RA489 commented Mar 7, 2019

@Bradamant3 thanks for the review.

@RA489
Copy link
Author

RA489 commented Mar 25, 2019

@Bradamant3 PTAL.

More section should not repeat short description. Both are served together on the built page.
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Apr 19, 2019
@Bradamant3
Copy link
Contributor

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 19, 2019
@Bradamant3
Copy link
Contributor

/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 Apr 19, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bradamant3

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 Apr 19, 2019
@k8s-ci-robot k8s-ci-robot merged commit 942898d into kubernetes:master Apr 19, 2019
nowjean pushed a commit to nowjean/website that referenced this pull request Jun 13, 2019
* Add formal definition of workloads

* Update workload.md

* add light copyedit

More section should not repeat short description. Both are served together on the built page.
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/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.

Include a formal definition of "Workloads" in k8s.io/docs/concepts/workloads/
7 participants