VirtusLab/kubedrainer

Error when running "go get github.com/VirtusLab/kubedrainer/pkg/drainer" command

Opened this issue · 1 comments

I'm trying to import the drainer package into my Go project. But, I got errors. Did I miss something?

go get github.com/VirtusLab/kubedrainer/pkg/drainer
go: downloading github.com/VirtusLab/kubedrainer v0.0.9
go: found github.com/VirtusLab/kubedrainer/pkg/drainer in github.com/VirtusLab/kubedrainer v0.0.9
go: downloading github.com/rs/zerolog v1.19.0
go: downloading github.com/VirtusLab/go-extended v0.0.11
go: downloading github.com/gregjones/httpcache v0.0.0-20190212212710-3befbb6ad0cc
go: downloading google.golang.org/appengine v1.6.1
# github.com/VirtusLab/kubedrainer/pkg/kubernetes/node
../../go/pkg/mod/github.com/!virtus!lab/kubedrainer@v0.0.9/pkg/kubernetes/node/node.go:25:46: not enough arguments in call to n.Client.CoreV1().Nodes().List
	have ("k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions)
	want (context.Context, "k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions)
../../go/pkg/mod/github.com/!virtus!lab/kubedrainer@v0.0.9/pkg/kubernetes/node/node.go:49:44: not enough arguments in call to n.Client.CoreV1().Nodes().Get
	have (string, "k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions)
	want (context.Context, string, "k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions)

This looks like some kind of incompatibility between kubernetes client versions, were you able to solve the issue?