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

Request to Remove k8s.io/kubernetes Dependency #102

Open
RrankPyramid opened this issue Nov 11, 2024 · 0 comments
Open

Request to Remove k8s.io/kubernetes Dependency #102

RrankPyramid opened this issue Nov 11, 2024 · 0 comments

Comments

@RrankPyramid
Copy link

RrankPyramid commented Nov 11, 2024

Hello,

Thank you for the work you’re doing with this project! I’m reaching out regarding the dependency on k8s.io/kubernetes. Currently, the project relies on several internal packages from k8s.io/kubernetes, such as:

  • k8s.io/kubernetes/pkg/scheduler/apis/config/scheme
  • k8s.io/kubernetes/pkg/scheduler/apis/config
  • k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache
  • k8s.io/kubernetes/pkg/util/filesystem
  • k8s.io/kubernetes/pkg/kubelet/apis/config

However, according to the official Go documentation for Kubernetes, using k8s.io/kubernetes as a library is no longer supported. The documentation suggests using Kubernetes' published components instead, as k8s.io/kubernetes is intended only for building and running Kubernetes itself, not for use as a dependency in other projects.
image

Additionally, in Kubernetes version 1.26 and above, direct imports from k8s.io/kubernetes are no longer supported in the same way. Internal packages have been refactored, and dependencies on k8s.io/kubernetes can lead to version conflicts and compatibility issues, especially with projects that need to stay up-to-date with the latest Kubernetes versions.

Do you currently have any plans to replace the k8s.io/kubernetes dependency with staging modules (like k8s.io/client-go, k8s.io/apimachinery, k8s.io/api, k8s.io/utils), or is there an alternative approach under consideration?

Thank you for considering this request, and I look forward to any updates on this matter!

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

1 participant