openshift-evangelists / crd-code-generation

Apache License 2.0
151 stars 43 forks source link

main.go:28:56: cannot use cfg #9

Open kzhangworks opened 4 years ago

kzhangworks commented 4 years ago

When I run: go build

I get:

src/github.com/openshift-evangelists/crd-code-generation/cmd/example

./main.go:28:56: cannot use cfg (type "src/github.com/openshift-evangelists/crd-code-generation/vendor/k8s.io/client-go/rest".Config) as type "github.com/openshift-evangelists/crd-code-generation/vendor/k8s.io/client-go/rest".Config in argument to versioned.NewForConfig ./main.go:33:85: cannot use "src/github.com/openshift-evangelists/crd-code-generation/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions literal (type "src/github.com/openshift-evangelists/crd-code-generation/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift-evangelists/crd-code-generation/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to exampleClient.ExampleV1().Databases("default").List