Skip to content

Conversation

@zimbatm
Copy link
Contributor

@zimbatm zimbatm commented Dec 10, 2019

Running go test -v ./... on master currently fails with:

go/pkg/mod/k8s.io/client-go@v11.0.0+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher

Follow
https://github.com/kubernetes/client-go/blob/master/INSTALL.md#go-modules
and use the latest release of kubernetes instead. Fixed with:

export GO111MODULE=on
go get k8s.io/client-go@kubernetes-1.16.3
go mod tidy

There are also failing tests that are not fixed by this PR.

@FxKu
Copy link
Member

FxKu commented Dec 10, 2019

Isn't this duplicate to #705 ? 😃
I've also updated deps in PR #478, which we've just merged. So should be fixed now.

@zimbatm
Copy link
Contributor Author

zimbatm commented Dec 10, 2019

The issue is that go get sigs.k8s.io/kind@v0.5.1 in e2e/Makefile bumps the version of the go-client, which then breaks back-compatibility in the other code.

Fix build issue:

    go/pkg/mod/k8s.io/client-go@v11.0.0+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher

Follow
https://github.com/kubernetes/client-go/blob/master/INSTALL.md#go-modules
and use the latest release of kubernetes instead. Fixed with:

    make tools
@zimbatm
Copy link
Contributor Author

zimbatm commented Dec 10, 2019

Closed #705 as it was outdated. This is a bit different as it fixes the build, whereas #705 was just trying to cleanup things.

k8s.io/api v0.0.0-20191121015604-11707872ac1c
k8s.io/apiextensions-apiserver v0.0.0-20191121021419-88daf26ec3b8
k8s.io/apimachinery v0.0.0-20191121015412-41065c7a8c2a
k8s.io/client-go v11.0.0+incompatible
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the important line in the changeset

@sdudoladov
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member

FxKu commented Dec 12, 2019

👍

@FxKu FxKu merged commit bfe2e70 into zalando:master Dec 12, 2019
@FxKu
Copy link
Member

FxKu commented Dec 12, 2019

Thanks @zimbatm for providing this fix. For some reason, I didn't ran into these issues. But, go-client version should not be raised by the kind client.

@zimbatm zimbatm deleted the fix-master-build branch December 12, 2019 22:31
@sdudoladov sdudoladov mentioned this pull request Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants