-
Notifications
You must be signed in to change notification settings - Fork 54
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 global-job-replicas label/annotation #677
Add global-job-replicas label/annotation #677
Conversation
Welcome @GiuseppeTT! |
Hi @GiuseppeTT. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
/ok-to-test |
Done : ) |
/lgtm @GiuseppeTT is this going to be used to set TPU_NUM_SLICES (or similar) env var? |
api/jobset/v1alpha2/jobset_types.go
Outdated
// GlobalJobReplicasKey is a label/annotation set to the total number of replicatedJob replicas. | ||
// For each JobSet, this value will be equal to the sum of `replicas`, where `replicas` | ||
// is equal to jobset.spec.replicatedJobs[*].replicas. | ||
GlobalJobReplicasKey string = "jobset.sigs.k8s.io/global-job-replicas" |
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.
jobset.sigs.k8s.io/global-job-count
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.
Actually, we used jobset.sigs.k8s.io/replicatedjob-replicas
above, so the equivalent here would be jobset.sigs.k8s.io/global-replicas
perhaps.
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.
Hi @ahg-g.
Just to be extra sure. Are you suggesting to rename jobset.sigs.k8s.io/global-job-replicas
to jobset.sigs.k8s.io/global-replicas
? If so, I agree, it's a better name and I can change it : )
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.
Yes, to align with the other annotation we have for number of replicas within a replicatedJob
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.
Done!
Yes! It is going to be used to set the env variable |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, GiuseppeTT 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 |
/kind feature
Fixes #676