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

Remove the podControl and serviceControl interfaces #36

Merged
merged 4 commits into from
May 17, 2019

Conversation

jian-he
Copy link
Contributor

@jian-he jian-he commented May 9, 2019

Fixes #33

Removed the PodControl/ServiceControl interfaces.
Changed the associated logic accordingly

@richardsliu @gaocegege @johnugeorge


This change is Reviewable

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.

Generally LGTM

@@ -93,14 +93,14 @@ func (jc *JobController) ReconcileJobs(

oldStatus := jobStatus.DeepCopy()

pods, err := jc.GetPodsForJob(metaObject)
pods, err := jc.Controller.GetPodsForJob(job)
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to specify Controller here? Interface embedding will do it for us, I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's due to the controller field is explicitly used in the struct.

this was there originally, we can remove it in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha. SGTM

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

@k8s-ci-robot k8s-ci-robot removed the lgtm label May 13, 2019
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

@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.

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 48d498a into kubeflow:master May 17, 2019
georgkaleido pushed a commit to georgkaleido/common that referenced this pull request Jun 9, 2022
* Remove encoding_kwargs PIL.Image.fromarray

* Access im_rgb not via get

Co-authored-by: Paul Angerer <dabauxi@users.noreply.github.com>
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.

PodControl/ServiceControl interfaces are duplicated with the JobController create/delete Pod/Service Interface
4 participants