-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
065682a
to
9b3c679
Compare
This is too restrict.. it's pretty common to ignore output check. Disable |
/hold Please help on review first. I will run some real test against this version manually. |
9b3c679
to
bb36399
Compare
The purpose of this PR is to get ride of direct Kubernetes dependency. Expectation is being used in JobController to tell the number of pods/services they expect. This is the only library we reference in common code base. It makes sense to copy to our code base. In the future, Instead of “import k8s.io/kubernetes/pkg/controller”, User need to “import github.com/kubeflow/common/pkg/controller.v1/expectation" and use `expectation.NewControllerExpectations` instead. Signed-off-by: Jiaxin Shan <[email protected]>
bb36399
to
7607476
Compare
@gaocegege This one bring expectation back to repo. We remove all the direct dependency of Kubernetes now. |
Is this still on hold? |
/hold cancel This can be merged. @terrytangyuan |
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: 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 |
Resolve #48. Besides #73, this is the last PR to remove direct Kubernetes dependency. I think current strategy is folk PodControlInterface and Expectations from main Kubernetes pkg and maintain in common repo. This also helps to make sure our code is reliable without worrying about changes K8s version upgrade brings.
For long term, I will try to brings these changes to
kubernetes/client-go
and we can use client-go directly. Track progress here. kubernetes/client-go#332The purpose of this PR is to get ride of direct Kubernetes dependency. Expectation is being used in JobController to tell the number of pods/services they expect.
In the future, Instead of
import k8s.io/kubernetes/pkg/controller
, User need toimport github.com/kubeflow/common/pkg/controller.v1/expectation
and useexpectation.NewControllerExpectations
instead.Signed-off-by: Jiaxin Shan [email protected]
/cc @gaocegege @terrytangyuan