我正在使用kubebuilder创建 kubernetes operator 项目。运行快速入门指南中描述的项目 init 命令后
kubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors"
dep ensure
返回下面给出的错误日志。
Solving failure: No versions of k8s.io/client-go met constraints:
v8.0.0: Could not introduce k8s.io/client-go@v8.0.0, as it is not allowed by constraints from the following projects:
kubernetes-1.10.1 from (root)
kubernetes-1.10.1 from sigs.k8s.io/controller-runtime@master
v7.0.0: Could not introduce k8s.io/client-go@v7.0.0, as it is not allowed by constraints from the following projects:
kubernetes-1.10.1 from (root)
kubernetes-1.10.1 from sigs.k8s.io/controller-runtime@master
v6.0.0: Could not introduce k8s.io/client-go@v6.0.0, as it is not allowed by constraints from the following projects:
kubernetes-1.10.1 from (root)
kubernetes-1.10.1 from sigs.k8s.io/controller-runtime@master