-
Notifications
You must be signed in to change notification settings - Fork 700
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 validation for verifying that the CustomJob (e.g., TFJob) name meets DNS1035 #1748
Add validation for verifying that the CustomJob (e.g., TFJob) name meets DNS1035 #1748
Conversation
…ets DNS1035 Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
/assign @johnugeorge @zw0610 |
Pull Request Test Coverage Report for Build 4056733428
💛 - Coveralls |
@johnugeorge Do we need to cherry-pick this commit to the v1.6 branch? |
Thanks @tenzen-y for this. |
I could be wrong. The code changes introduced by this pr seems a bit tremendous to me. Another approach might be: skipping changes under However, I agree with the idea to change from validating job spec to validating the entire job. Maybe after the recent release, we can focus on a refactor version of training operator and introduce this new validating idea. |
Does that mean we want to introduce your another approach to the next training-operator release (v1.6)?
We will not include this improvement in the next training-operator (v1.6) release. So this commit is merged only to the master branch and this becomes the improvement for the long term. |
The above next release meant v1.7, not v1.6. |
No, what I commented is just to provide another possible to address the naming issue, which I believe could leads to less code changes. But it's just a suggestion and I'm OK with the approach in commit 68b582a |
@zw0610, I see. I would take my approach since this approach has been more tested and is safer than adding |
Good. |
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.
Thanks!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y, terrytangyuan 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 |
* Add validation for verifying that the CustomJob (e.g., TFJob) name meets DNS1035 (#1748) Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> * Fix the success condition of the job in PyTorchJob's Elastic mode. (#1752) Signed-off-by: Syulin7 <735122171@qq.com> * Set the default value of CleanPodPolicy to None (#1754) Signed-off-by: Syulin7 <735122171@qq.com> * Update mpijob_controller.go (#1755) fix typo TFJob, should be MPIJob --------- Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> Signed-off-by: Syulin7 <735122171@qq.com> Co-authored-by: Yuki Iwai <yuki.iwai.tz@gmail.com> Co-authored-by: yu lin <37265556+Syulin7@users.noreply.github.com> Co-authored-by: Yasser Shalabi <yassershalabi@gmail.com>
Signed-off-by: Yuki Iwai yuki.iwai.tz@gmail.com
What this PR does / why we need it:
I added validation for verifying that the CustomJob (e.g., TFJob) name meets DNS1035.
Also, I refactored unit tests for validation.
Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...
format, will close the issue(s) when PR gets merged):Fixes #1745
Checklist: