coreos / etcd-operator

etcd operator creates/configures/manages etcd clusters atop Kubernetes
https://coreos.com/blog/introducing-the-etcd-operator.html
Apache License 2.0
1.75k stars 741 forks source link

kubernetes/client-go incompatibility #2167

Open ghost opened 4 years ago

ghost commented 4 years ago

I'm unable to use pkg/client to manipulate etcd-operator CRDs using go-client. I've encountered two problems:

  1. When the github.com/coreos/etcd-operator package has been installed:
    [brad@x220 eoctest]$ go build
    # github.com/coreos/etcd-operator/pkg/generated/clientset/versioned/typed/etcd/v1beta2
    ../../go/pkg/mod/github.com/coreos/etcd-operator@v0.9.4/pkg/generated/clientset/versioned/typed/etcd/v1beta2/etcd_client.go:84:32: undefined: serializer.DirectCodecFactory
  2. When the package is installing cleanly:
    [brad@x220 eoctest]$ go get                                                                                                                           
    # k8s.io/client-go/rest                                                                                                                               
    ../go/pkg/mod/k8s.io/client-go@v11.0.0+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher
        have (*versioned.Decoder)
        want (watch.Decoder, watch.Reporter)

    Attached is a minimal test main.go