英文:
For `module k8s.io/kubernetes`, why do not use multi-module repo?
问题
对于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!
答案1
得分: 0
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论