Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

kubernetes/client-go incompatibility #2167

@ghost

Description

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
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions