Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Upgrade client-go #104

Merged
merged 11 commits into from
Jul 3, 2019
Merged

Upgrade client-go #104

merged 11 commits into from
Jul 3, 2019

Conversation

juliogreff
Copy link
Contributor

Closes #93

kanatohodets
kanatohodets previously approved these changes Jun 19, 2019
Copy link
Contributor

@kanatohodets kanatohodets left a comment

Choose a reason for hiding this comment

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

Remove ~2,100,000 lines of code without a loss in functionality? Achievement unlocked!

Not sure how much review there is to do here beyond seeing that the tests pass and being a bit conservative in the rollout strategy, so LGTM. Many thanks for purging some of the old CI hacks.

Super nice work @parhamdoustdar and @juliogreff!

parhamdoustdar and others added 10 commits June 25, 2019 14:37
Now that we have moved to Go Modules, we no longer need to keep Gopkg
files (dependencies are now managed by go.mod and go.sum), nor do we
need to install and call `dep` in our CI pipeline. Instead, now we just
call `go mod verify`, and ensure that all go commands use the vendored
version of libraries by specifying `-mod=vendor`.
We can't really use modules in 1.10. Also, we have successfully ran
shipper built with 1.12, so that's the reasonable thing to do.
Since hack/tools.go got introduced, trying to build /hack/ fails with:

	hack/tools.go:4:8:error: build constraints exclude all Go files
	in vendor/k8s.io/code-generator

We could just add a build tag to make it compile, but there's not much
of a gain there, so let's just skip it completely instead.
1. The kubernetes was only needed because of an older version of
k8s.io/code-generator. Now that it's been upgraded, it's no longer
needed.

2. kubectl is not needed since microk8s already installs a version of
that. For convenience, we alias `kubectl` to `microk8s.kubectl`
client-go's fake dynamic client no longer contains actions from the
non-dynamic client, so we had to split up, and sometimes join, lists of
actions so they could be checked properly.

With this, now all the unit tests pass with new client-go \o/
@juliogreff
Copy link
Contributor Author

Rebased against new master because of conflicts, should be able to merge cleanly now.

pkg/testing/util.go Show resolved Hide resolved
pkg/controller/installation/utils_test.go Outdated Show resolved Hide resolved
@osdrv osdrv merged commit 1ef3d3c into master Jul 3, 2019
@osdrv osdrv deleted the client-go-1.14.x branch July 3, 2019 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade client-go
4 participants