-
Notifications
You must be signed in to change notification settings - Fork 73
Delete direct dependency of kubernetes #48
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
/bug |
|
We should to remove the dep here https://github.com/kubeflow/common/blob/master/job_controller/api/v1/controller.go#L83 Then we do not need "k8s.io/kubernetes/pkg/controller" |
There are two way to resolve this problem
|
I have no idea why we place it in api. @richardsliu @jian-he @merlintang @terrytangyuan Do you have idea about it? |
Any update on this issue, it's breaking dependency on all operators' api packages. |
em. this will work but probably not the elegant way, I notice there's an issue to suggest to add expectations in client-go. I reopen the issue and will spend some time on it later. kubernetes/client-go#332
I doubt this will help resolve the dependency issue if you use go mod.? Correct me if I am wrong. Even you import I file a PR #51 to make the change. More changes need to be done to upgrade client-go and Kubernetes dependency. I will file seperate PR to address the issue. There're some known incompatible issues prior to 1.15. modules did not include go.mod files, so go does not understand what versions of transitive dependencies to use. That makes it fetch the latest version of all transitive dependencies, which are not compatible. We should upgrade to >= 1.15 to resolve some issues/ |
I agree with moving it out of the package |
Consider the case we plan to use PodControlInterface which is folked from I think it make sense to folk expectation code as well, that's in After that, we will remove all direct Kubernetes dependencies |
Now go.mod has dependency of kubernetes v1.11.2.
It will be hard to import job_controller/pkg/api because of compatibility with new version client-go
The text was updated successfully, but these errors were encountered: