对于“module k8s.io/kubernetes”,为什么不使用多模块存储库?

发布于 2025-01-11 14:14:40 字数 158 浏览 0 评论 0原文

对于module go.etcd.io/etcd/v3,它采用多模块存储库,因此如果我们只需要一些包,则无需拉取整个存储库。

module k8s.io/kubernetes 作为单模块而不是多模块有什么好处? 请帮我解答一下,谢谢!

For module go.etcd.io/etcd/v3, it adopts a multi-module repo so there is no need to pull the whole repo if we only need some packages.

What are the benefits that module k8s.io/kubernetes being a single-module rather than a multi-module?
Please help me to figure it out, thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零時差 2025-01-18 14:14:40

k8s.io/kubernetes 不适合用作导入库。他们使用 staging/... 来表示合适的库。

$ find . -name go.mod | grep -v vendor

./go.mod

./kube-openapi-hack/go.mod

./hack/tools/go.mod

./gengo2/go.mod

./staging/src/k8s.io/legacy-cloud-providers/go.mod

./staging/src/k8s.io/sample-cli-plugin/go.mod

./staging/src/k8s.io/kubectl/go.mod

./staging/src/k8s.io/client-go/go.mod

./staging/src/k8s.io/cri-api/go.mod

./staging/src/k8s.io/apimachinery/go.mod

./staging/src/k8s.io/cluster-bootstrap/go.mod

./staging/src/k8s.io/cloud-provider/go.mod

./staging/src/k8s.io/metrics/go.mod

./staging/src/k8s.io/cli-runtime/go.mod

./staging/src/k8s.io/controller-manager/go.mod

./staging/src/k8s.io/component-helpers/go.mod

./staging/src/k8s.io/csi-translation-lib/go.mod

./staging/src/k8s.io/component-base/go.mod

./staging/src/k8s.io/kube-scheduler/go.mod

./staging/src/k8s.io/sample-apiserver/go.mod

./staging/src/k8s.io/code-generator/examples/go.mod

./staging/src/k8s.io/code-generator/go.mod

./staging/src/k8s.io/apiextensions-apiserver/go.mod

./staging/src/k8s.io/kube-proxy/go.mod

./staging/src/k8s.io/kube-controller-manager/go.mod

./staging/src/k8s.io/pod-security-admission/go.mod

./staging/src/k8s.io/kubelet/go.mod

./staging/src/k8s.io/sample-controller/go.mod

./staging/src/k8s.io/mount-utils/go.mod

./staging/src/k8s.io/api/go.mod

./staging/src/k8s.io/kube-aggregator/go.mod

./staging/src/k8s.io/apiserver/go.mod

k8s.io/kubernetes IS NOT suitable for use as an imported library. They use staging/… to denote libraries which are suitable.

$ find . -name go.mod | grep -v vendor

./go.mod

./kube-openapi-hack/go.mod

./hack/tools/go.mod

./gengo2/go.mod

./staging/src/k8s.io/legacy-cloud-providers/go.mod

./staging/src/k8s.io/sample-cli-plugin/go.mod

./staging/src/k8s.io/kubectl/go.mod

./staging/src/k8s.io/client-go/go.mod

./staging/src/k8s.io/cri-api/go.mod

./staging/src/k8s.io/apimachinery/go.mod

./staging/src/k8s.io/cluster-bootstrap/go.mod

./staging/src/k8s.io/cloud-provider/go.mod

./staging/src/k8s.io/metrics/go.mod

./staging/src/k8s.io/cli-runtime/go.mod

./staging/src/k8s.io/controller-manager/go.mod

./staging/src/k8s.io/component-helpers/go.mod

./staging/src/k8s.io/csi-translation-lib/go.mod

./staging/src/k8s.io/component-base/go.mod

./staging/src/k8s.io/kube-scheduler/go.mod

./staging/src/k8s.io/sample-apiserver/go.mod

./staging/src/k8s.io/code-generator/examples/go.mod

./staging/src/k8s.io/code-generator/go.mod

./staging/src/k8s.io/apiextensions-apiserver/go.mod

./staging/src/k8s.io/kube-proxy/go.mod

./staging/src/k8s.io/kube-controller-manager/go.mod

./staging/src/k8s.io/pod-security-admission/go.mod

./staging/src/k8s.io/kubelet/go.mod

./staging/src/k8s.io/sample-controller/go.mod

./staging/src/k8s.io/mount-utils/go.mod

./staging/src/k8s.io/api/go.mod

./staging/src/k8s.io/kube-aggregator/go.mod

./staging/src/k8s.io/apiserver/go.mod
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文