kubernetes/client-go undefined: v1.FinalizerOrphan

2/7/2017

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:

var standardFinalizers = sets.NewString(
    string(FinalizerKubernetes),
    metav1.FinalizerOrphan,
)
-- H22F
go
kubernetes

2 Answers

2/11/2017

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.

-- lavalamp
Source: StackOverflow

2/8/2017

I encountered a similar issue when I tried to go get kubernetes v1.5.2.
Just solved it with:
cd ../k8s.io/kubernetes
git checkout v1.5.2

-- Zin
Source: StackOverflow