Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Make UpdateJobConditions public to be used by custom operators #30

Merged
merged 4 commits into from
Apr 30, 2019

Conversation

jian-he
Copy link
Contributor

@jian-he jian-he commented Apr 25, 2019

UpdateJobConditions can be used as the util method by custom operators when updating the JobStatus in the UpdateJobStatus api


This change is Reviewable

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we place the helper function is a separate package?

@jian-he
Copy link
Contributor Author

jian-he commented Apr 26, 2019

sounds good, which package/file should we put ?
maybe job_controller/util.go

@gaocegege
Copy link
Member

SGTM. job_controller/util.go

@jian-he
Copy link
Contributor Author

jian-he commented Apr 26, 2019

I ended up moving the util methods to util/status.go. Please check if making sense

@jian-he
Copy link
Contributor Author

jian-he commented Apr 26, 2019

this patch only moves the code from one to another and should not affect test coverage

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/cc @richardsliu

@richardsliu
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: richardsliu

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

@richardsliu richardsliu merged commit d8fb8ca into kubeflow:master Apr 30, 2019
georgkaleido pushed a commit to georgkaleido/common that referenced this pull request Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants