英文:
kubernetes/client-go undefined: v1.FinalizerOrphan
问题
我得到了go get k8s.io/client-go/1.5/...
的内容...
在尝试运行go run
时出现了错误:
> # k8s.io/client-go/pkg/api/v1
> ../k8s.io/client-go/pkg/api/v1/helpers.go:86: undefined: v1.FinalizerOrphan
想知道如何处理,请问?
../k8s.io/client-go/pkg/api/v1/helpers.go:86:
var standardFinalizers = sets.NewString(
string(FinalizerKubernetes),
metav1.FinalizerOrphan,
)
英文:
I get the go get k8s.io/client-go/1.5/...
An error occurred while trying to go run:
> # k8s.io/client-go/pkg/api/v1
> ../k8s.io/client-go/pkg/api/v1/helpers.go:86: undefined: v1.FinalizerOrphan
Want to how to deal with, please?
../k8s.io/client-go/pkg/api/v1/helpers.go:86:
<!-- language: go -->
var standardFinalizers = sets.NewString(
string(FinalizerKubernetes),
metav1.FinalizerOrphan,
)
答案1
得分: 1
我在尝试获取Kubernetes v1.5.2时遇到了类似的问题。
我通过以下方式解决了它:
cd ../k8s.io/kubernetes
git checkout v1.5.2
英文:
I encountered a similar issue when I tried to go get kubernetes v1.5.2.<br/>
Just solved it with:<br/>
<i>cd ../k8s.io/kubernetes</i><br/>
<i>git checkout v1.5.2</i><br/>
答案2
得分: 1
抱歉,这应该是暂时的——我们正在修复这个问题(以及一个使我们的发布机器人停止破坏客户端的系统)。在此期间,请回退一两个提交,如其他答案所建议的那样。
英文:
Sorry, this should be temporary--we are working on a fix (and on a system so our publishing bot stops breaking the client). In the meantime, go back a commit or two, as the other answer suggests.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论