-
Notifications
You must be signed in to change notification settings - Fork 731
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
Extract reusable codes to common utility #1297
Extract reusable codes to common utility #1297
Conversation
Signed-off-by: Jiaxin Shan <[email protected]>
Move ConvertPodList, ConvertServiceList to common library Signed-off-by: Jiaxin Shan <[email protected]>
Signed-off-by: Jiaxin Shan <[email protected]>
Refactor follow methods to job independent and move to common utils - OnDependentCreateFunc - OnDependentDeleteFunc Signed-off-by: Jiaxin Shan <[email protected]>
/cc @kubeflow/wg-training-leads |
Signed-off-by: Jiaxin Shan <[email protected]>
4ff936e
to
aff52ba
Compare
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege, 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 |
* Remove duplicate FakeWorkQueue Signed-off-by: Jiaxin Shan <[email protected]> * Extract utility to common Move ConvertPodList, ConvertServiceList to common library Signed-off-by: Jiaxin Shan <[email protected]> * Move gang scheduing setting to common Signed-off-by: Jiaxin Shan <[email protected]> * Extract OnDependentCreate/Delete handler to utils Refactor follow methods to job independent and move to common utils - OnDependentCreateFunc - OnDependentDeleteFunc Signed-off-by: Jiaxin Shan <[email protected]> * Refactor SatisfiedExpectations to a common method Signed-off-by: Jiaxin Shan <[email protected]>
This PR is part of #1299 kubeflow/common#138
It resolves "2. Extract common methods to utilities which can be shared by all operators."
In Phase I, we merge apis and controller codes into this repo. However, there're lots of duplication and similar methods. In Phase II, we are try to refactor these similar redeclared codes to make them generally usable. This PR is the first one of Phase II.
convertServiceList
,convertPodList
,IsGangSchedulerSet
to common utils.