Skip to content
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

Unable to use go modules in device plugins #82437

Closed
cbf123 opened this issue Sep 6, 2019 · 8 comments
Closed

Unable to use go modules in device plugins #82437

cbf123 opened this issue Sep 6, 2019 · 8 comments
Assignees
Labels
area/code-organization Issues or PRs related to kubernetes code organization kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node.

Comments

@cbf123
Copy link
Contributor

cbf123 commented Sep 6, 2019

What happened:

As described at k8snetworkplumbingwg/sriov-network-device-plugin#160 (comment) when I ran "go get k8s.io/kubernetes" it gave me the following error:

...initial bit snipped...
go: k8s.io/cluster-bootstrap@v0.0.0: unknown revision v0.0.0
go: k8s.io/kube-proxy@v0.0.0: unknown revision v0.0.0
go: k8s.io/code-generator@v0.0.0: unknown revision v0.0.0
go: k8s.io/metrics@v0.0.0: unknown revision v0.0.0
go: k8s.io/kubelet@v0.0.0: unknown revision v0.0.0
go: k8s.io/legacy-cloud-providers@v0.0.0: unknown revision v0.0.0
go: error loading module requirements

What you expected to happen:

That it would update the kubernetes dependency appropriately.

How to reproduce it (as minimally and precisely as possible):

git clone git@github.com:intel/sriov-network-device-plugin.git
cd sriov-network-device-plugin
go get k8s.io/kubernetes

Anything else we need to know?:

According to golang/go#32776 it might be a problem with specifying k8s.io/kubernetes as a dependency. At that link it says " k8s.io/kubernetes is not primarily intended to be consumed as a module. Only the published subcomponents are (and go get works properly with those)." If that's the case, then the deviceplugin API needs to be published as a subcomponent because clearly all device plugins need to be able to import the deviceplugin API.

@cbf123 cbf123 added the kind/bug Categorizes issue or PR as related to a bug. label Sep 6, 2019
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Sep 6, 2019
@cbf123
Copy link
Contributor Author

cbf123 commented Sep 6, 2019

@kubernetes/sig-node-bugs

@k8s-ci-robot k8s-ci-robot added sig/node Categorizes an issue or PR as relevant to SIG Node. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Sep 6, 2019
@k8s-ci-robot
Copy link
Contributor

@cbf123: Reiterating the mentions to trigger a notification:
@kubernetes/sig-node-bugs

In response to this:

@kubernetes/sig-node-bugs

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@dims
Copy link
Member

dims commented Sep 6, 2019

/area code-organization

@k8s-ci-robot k8s-ci-robot added the area/code-organization Issues or PRs related to kubernetes code organization label Sep 6, 2019
@dims
Copy link
Member

dims commented Sep 7, 2019

Looks like the repo in question just uses code under k8s.io/kubernetes/pkg/kubelet/apis/deviceplugin, we could just move that to staging hopefully

@dims
Copy link
Member

dims commented Sep 7, 2019

/assign @RenaudWasTaken

@dims
Copy link
Member

dims commented Sep 7, 2019

note from @RenaudWasTaken in email:

We probably need to graduate the device plugin to v1 beforehand.

We expect changes in that api for the NUMA effort though so we might want to wait for the next release.

@andrewsykim
Copy link
Member

/close

@k8s-ci-robot
Copy link
Contributor

@andrewsykim: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code-organization Issues or PRs related to kubernetes code organization kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node.
Projects
None yet
Development

No branches or pull requests

5 participants