Client-go: Unable to resolve k8s.io/api/admissionregistration/v1alpha1

Created on 5 Feb 2019  路  3Comments  路  Source: kubernetes/client-go

Hi,

I am using k8s.io/client-go which internally uses k8s.io/api which has dependency resolution problem.

Go version : go version go1.11.4 linux/amd64
Version details of the apis:
k8s.io/api v0.0.0-20190205051315-663a691defed
k8s.io/client-go v10.0.0+incompatible

The packages of k8s.io/api are latest, but when "env GO111MODULE=on go mod vendor" is executed, the dependencies present in k8s.io/client-go are not getting updated.

Error that is seen while building:
vendor/k8s.io/client-go/kubernetes/scheme/register.go:22:2: cannot find package "." in:
/root/asn/go/src/gerrit.ext.net.nokia.com/AANM/service/egress/vendor/k8s.io/api/admissionregistration/v1alpha1

Any help in troubleshooting this issue would be welcomed.

Most helpful comment

I think this is still a problem, the linked comment does not solve it.

All 3 comments

@liggitt: Closing this issue.

In response to this:

see resolution in https://github.com/kubernetes/client-go/issues/551#issuecomment-457977525

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

I think this is still a problem, the linked comment does not solve it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prestonvanloon picture prestonvanloon  路  6Comments

inetkiller picture inetkiller  路  6Comments

antoineco picture antoineco  路  6Comments

yashbhutwala picture yashbhutwala  路  4Comments

h0tbird picture h0tbird  路  3Comments