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

k8s.io/kubernetes imports are not recommended #79

Closed
justaugustus opened this issue Feb 9, 2022 · 3 comments
Closed

k8s.io/kubernetes imports are not recommended #79

justaugustus opened this issue Feb 9, 2022 · 3 comments

Comments

@justaugustus
Copy link
Member

@cisco-open/kubei-maintainers -- From @liggitt in kubernetes/kubernetes#90358 (comment):

go: k8s.io/kubernetes@v1.18.2 requires ...

This is caused by depending on k8s.io/kubernetes directly as a library, which is not supported. The components intended to be used as libraries are published as standalone modules like k8s.io/api, k8s.io/apimachinery, k8s.io/client-go, etc, and can be referenced directly.

If you want to do this anyway, see discussion in kubernetes/kubernetes#79384 about how you can workaround the v0.0.0 requirements.

Let's please remove the dep from https://github.com/cisco-open/kubei/blob/651fb9a41e88e3c62b2f0ea002a926fea07645f2/go.mod#L18.

Consider the suggestions in https://pkg.go.dev/github.com/google/go-containerregistry/pkg/authn as alternatives.

@justaugustus
Copy link
Member Author

@cisco-open/kubei-maintainers -- Updates on this?

@FrimIdan
Copy link
Member

@justaugustus it will be resolved once kubei v2 will be released

@FrimIdan
Copy link
Member

solved https://github.com/cisco-open/kubei/releases/tag/v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants