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

Update kubernetes go client (@ 0.21.3), other go mods #3538

Merged
merged 9 commits into from
Aug 18, 2021

Conversation

kingdonb
Copy link
Member

After today's dev meeting, I understand better what impact there could be for users from #3537 and why we cannot upgrade Flux's kubernetes go client quite that far.

It makes sense to me that we should upgrade to the last release before the breaking change, since it will still be compatible with two versions forward and two versions backwards. I think is the change we should merge instead of #3537.

renovate-bot and others added 7 commits August 18, 2021 09:06
* Update github.com/shurcooL/vfsgen commit hash to 0d455de

* Update golang.org/x/oauth2 commit hash to a41e5a7
* Update golang.org/x/sys commit hash to 0f9fa26
* Update golang.org/x/time commit hash to 1f47c86

* Update module github.com/Masterminds/semver/v3 to v3.1.1
* Update module github.com/gorilla/mux to v1.8.0
* Update module github.com/instrumenta/kubeval to v0.16.1
* Update module github.com/aws/aws-sdk-go to v1.40.7
* Update module github.com/pkg/term to v1
* Update module github.com/prometheus/client_golang to v1.11.0
* Update module k8s.io/apiextensions-apiserver to v0.21.3
* Update module github.com/google/go-github/v28 to v37
* Update module github.com/whilp/git-urls to v1
* Update module k8s.io/klog to v2
* Update module github.com/cheggaaa/pb/v3 to v3.0.8
* Update module github.com/evanphx/json-patch to v4.11.0
* Update module github.com/go-kit/kit to v0.11.0
* Update module github.com/spf13/cobra to v1.2.1
* Update module github.com/fluxcd/helm-operator to v1.4.0
* Update module github.com/imdario/mergo to v0.3.12
* Update module github.com/google/go-containerregistry to v0.5.1

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
Signed-off-by: Kingdon Barrett <yebyen@gmail.com>
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
* go mod download (go.sum)
* go mod updates for helm-operator package
* go mod download (helm-operator)
* remove github.com/Azure/go-autorest pin (it was failing go mod tidy)

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
* remove "replace" statement for go-autorest

With SOPS upgraded, "go mod tidy" now fails until this is removed.

* Resolve client-go issue from upgrade to 1.20

kubernetes/client-go#914 (comment)

* register deployments type

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
Tests failed because:

Error: ../../../go/pkg/mod/k8s.io/client-go@v0.22.0/plugin/pkg/client/auth/exec/metrics.go:21:2: package io/fs is not in GOROOT (/opt/hostedtoolcache/go/1.15.15/x64/src/io/fs)

This PR updated the toolchain to Go 1.16.x but CI was not yet upgraded. Adding a commit for that, CI should pass after.

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
In context where ctx context is already available, use it

Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
@kingdonb kingdonb added this to the 1.24.0 milestone Aug 18, 2021
This is required in order to maintain compatibility guarantees, since
there are breaking changes in 1.22.0 and we support K8s at two versions
back prior to the latest version. (We should not be on a latest version
until those breaking changes are at least two minor versions ago.)

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
@kingdonb
Copy link
Member Author

The notes in this comment are still the most relevant starting point for deciding what PRs to merge for this release:

#3537 (comment)

@stefanprodan
Copy link
Member

In go.mod the version is set to go 1.15 should be 1.16 like in CI.

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @kingdonb

@kingdonb
Copy link
Member Author

kingdonb commented Aug 18, 2021

Thanks @stefanprodan

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.

3 participants