-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Use consistent case for Job #12603
Use consistent case for Job #12603
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit d0e9121 https://deploy-preview-12603--kubernetes-io-master-staging.netlify.com |
content/en/docs/concepts/workloads/controllers/jobs-run-to-completion.md
Outdated
Show resolved
Hide resolved
content/en/docs/concepts/workloads/controllers/jobs-run-to-completion.md
Outdated
Show resolved
Hide resolved
1. Parallel Jobs with a *fixed completion count*: | ||
- specify a non-zero positive value for `.spec.completions`. | ||
- the job is complete when there is one successful pod for each value in the range 1 to `.spec.completions`. | ||
- **not implemented yet:** Each pod passed a different index in the range 1 to `.spec.completions`. | ||
- the overall task is complete when there is one successful Pod for each value in the range 1 to `.spec.completions`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm keen for the reader to get the idea that there's an overall piece of work represented by the Job. Usings might be coming from other systems where “job” could mean a batch from a larger pool, or a even a single element inside a batch.
I'll see if I can make some wording that to reinforce that, without losing the link to the Job concept in a Kubernetes sense.
How about this revised approach? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash your changes into a single commit.
From a tech pov this lgtm.
of successful completions is reached, the job itself is complete. Deleting a Job will cleanup the | ||
pods it created. | ||
A Job creates one or more pods and ensures that a specified number of them successfully terminate. | ||
As pods successfully complete, the Job tracks the successful completions. When a specified number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to fix Pod casing throughout this doc too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me this reads better using pod in lowercase where using the term more loosely. It comes down to a matter of style and taste, I think.
- Use “Job” to mean the Kubernetes object - Use “job” where capitalization hinders readability - Use “task”, or other synonymous concepts, to avoid confusion - Use “Pod” to mean the Kubernetes object - Use “pod” where capitalization hinders readability - Use “container” in lowercase everywhere Also: - Clarify work queue example for Job controller - Fix advice on running Job example - Tweak emphasis
7bab99e
to
d0e9121
Compare
Squashed & force-pushed |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zparnold 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 |
- Use “Job” to mean the Kubernetes object - Use “job” where capitalization hinders readability - Use “task”, or other synonymous concepts, to avoid confusion - Use “Pod” to mean the Kubernetes object - Use “pod” where capitalization hinders readability - Use “container” in lowercase everywhere Also: - Clarify work queue example for Job controller - Fix advice on running Job example - Tweak emphasis
Thanks, @sftim ! |
- Use “Job” to mean the Kubernetes object - Use “job” where capitalization hinders readability - Use “task”, or other synonymous concepts, to avoid confusion - Use “Pod” to mean the Kubernetes object - Use “pod” where capitalization hinders readability - Use “container” in lowercase everywhere Also: - Clarify work queue example for Job controller - Fix advice on running Job example - Tweak emphasis
- Use “Job” to mean the Kubernetes object - Use “job” where capitalization hinders readability - Use “task”, or other synonymous concepts, to avoid confusion - Use “Pod” to mean the Kubernetes object - Use “pod” where capitalization hinders readability - Use “container” in lowercase everywhere Also: - Clarify work queue example for Job controller - Fix advice on running Job example - Tweak emphasis
Issue #10086 highlights some confusing capitalization on https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
These changes are aimed at making the
Job
controller documentation more readable and less likely to confuse a reader. In deciding what changes to make, I've assumed that the reader is likely to have encountered the pod and container concepts already. Where it helps with readability I've opted to use “pod” as a normal English word, saving “Pod” for when this specifically describes an object of kindPod
.There's a bit more detail on my thinking here in the commit message for 8006296.