-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[KEP-4671]: fix api version issue and update api with implementation #5725
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
Merged
k8s-ci-robot
merged 1 commit into
kubernetes:master
from
kannon92:fix-typos-gang-scheduling
Dec 12, 2025
+8
−7
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,7 +134,7 @@ apiVersion: v1 | |
| kind: Pod | ||
| spec: | ||
| ... | ||
| workload: | ||
| workloadRef: | ||
| name: job-1 | ||
| ... | ||
| ``` | ||
|
|
@@ -151,8 +151,9 @@ spec: | |
| completionMode: Indexed | ||
| template: | ||
| spec: | ||
| workload: | ||
| workloadRef: | ||
| name: job-1 | ||
| podGroup: pg1 | ||
| restartPolicy: OnFailure | ||
| containers: | ||
| - name: ml-worker | ||
|
|
@@ -173,7 +174,7 @@ The `Workload` core resource will be introduced. A `Workload` does not create an | |
|
|
||
| It does not affect pod creation by Job or any other controller. A sample resource looks like this: | ||
| ```yaml | ||
| apiVersion: scheduling/v1alpha1 | ||
| apiVersion: scheduling.k8s.io/v1alpha1 | ||
| kind: Workload | ||
| metadata: | ||
| namespace: ns-1 | ||
|
|
@@ -222,7 +223,7 @@ usecases. You can read more about it in the [extended proposal] document. | |
| ### Naming | ||
|
|
||
| * `Workload` is the resource Kind. | ||
| * `scheduling` is the ApiGroup. | ||
| * `scheduling.k8s.io` is the ApiGroup. | ||
| * `spec.workload` is the name of the new field in pod. | ||
| * Within a Workload there is a list of groups of pods. Each group represents a top-level division of pods within a Workload. Each group can be independently gang scheduled (or not use gang scheduling). This group is named `PodGroup`. | ||
| * In a future , we expect that this group can optionally specify further subdivision into sub groups. Each sub-group can have an index. The indexes go from 0 to N, without repeats or gaps. These subgroups are called `PodSubGroup`. | ||
|
|
@@ -265,7 +266,7 @@ treat it as a blocker. | |
| The example below shows how this could look like for with the following `Workload` object: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the pod spec below as well: apiVersion: v1
kind: Pod
metadata:
name: jobset-job-1-abc123
spec:
...
workloadKey:
name: jobset
podGroup: job-1
podGroupReplicaKey: key-2
...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done. |
||
|
|
||
| ```yaml | ||
| apiVersion: scheduling/v1alpha1 | ||
| apiVersion: scheduling.k8s.io/v1alpha1 | ||
| kind: Workload | ||
| metadata: | ||
| name: jobset | ||
|
|
@@ -285,10 +286,10 @@ metadata: | |
| name: jobset-job-1-abc123 | ||
| spec: | ||
| ... | ||
| workload: | ||
| workloadRef: | ||
| name: jobset | ||
| podGroup: job-1 | ||
| podGroupReplicaIndex: 2 | ||
| podGroupReplicaKey: key-2 | ||
| ... | ||
|
|
||
| ``` | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.