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

Implement webhook validation for the TFJob #2036

Closed
wants to merge 1 commit into from

Conversation

tenzen-y
Copy link
Member

What this PR does / why we need it:
I implemented webhook validations for the TFJob.
Additionally, I didn't add any additional validations. The traininig-operator has the same validations the same as before.

Although we potentially commonize podTemplate validations, I leave such commonize in the follow-ups.

This PR depends on #2035

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Part-of #1993

Checklist:

  • Docs included if any changes are user facing

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y

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

@tenzen-y tenzen-y force-pushed the implement-tfjob-webhook-validations branch 2 times, most recently from b1f67ad to 64c1159 Compare March 27, 2024 19:06
@tenzen-y
Copy link
Member Author

/hold

Copy link

Pull Request Test Coverage Report for Build 8457254843

Details

  • 100 of 150 (66.67%) changed or added relevant lines in 4 files are covered.
  • 6 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 42.852%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/webhooks/tensorflow/tfjob_webhook.go 40 63 63.49%
pkg/webhooks/pytorch/pytorchjob_webhook.go 56 83 67.47%
Files with Coverage Reduction New Missed Lines %
pkg/controller.v1/mpi/mpijob_controller.go 6 80.67%
Totals Coverage Status
Change from base Build 8422823889: -0.03%
Covered Lines: 3768
Relevant Lines: 8793

💛 - Coveralls

@tenzen-y tenzen-y mentioned this pull request Mar 27, 2024
6 tasks
@tenzen-y tenzen-y force-pushed the implement-tfjob-webhook-validations branch from 64c1159 to 6bcb0de Compare March 27, 2024 20:06
@tenzen-y tenzen-y force-pushed the implement-tfjob-webhook-validations branch from 6bcb0de to 5ca5b07 Compare April 5, 2024 12:40
@tenzen-y
Copy link
Member Author

tenzen-y commented Apr 5, 2024

Rebased.

@tenzen-y tenzen-y force-pushed the implement-tfjob-webhook-validations branch 5 times, most recently from 44b1a1f to 8acaf22 Compare April 10, 2024 17:22
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
@tenzen-y tenzen-y force-pushed the implement-tfjob-webhook-validations branch from 8acaf22 to 7a08604 Compare April 10, 2024 17:24
@tenzen-y
Copy link
Member Author

Reopend: #2051
/close

@google-oss-prow google-oss-prow bot closed this Apr 10, 2024
Copy link

@tenzen-y: Closed this PR.

In response to this:

Reopend: #2051
/close

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/test-infra repository.

@tenzen-y tenzen-y deleted the implement-tfjob-webhook-validations branch April 10, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant