kubernetes/client-go undefined: v1.FinalizerOrphan

huangapple go评论82阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2017年2月7日 16:35:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/42085131.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定